keys_complete

InventoryXmlParser.keys_complete(node_content, required_keys)[source]

Check if a node contains all required keys.

Parameters
  • node_content (dict of str) – The content of a node as a dictionary.

  • required_keys (dict of str) – The keys which are mandatory for the node.

Returns

The missing keys.

Return type

list of str