@property<EOL><INDENT>def self_inventory(self):<DEDENT>
if self.api_key is None:<EOL><INDENT>return {}<EOL><DEDENT>if self._self_inventory:<EOL><INDENT>return self._self_inventory<EOL><DEDENT>resp, self_inventory = self.get('<STR_LIT>' % self.api_key)<EOL>real_self_inventory = dict()<EOL>for host in self_inventory:<EOL><INDENT>real_self_inventory[host[<NUM_LIT:0>]] = self.full_inventory[host[<NUM_LIT:0>]]<EOL><DEDENT>self._self_inventory = real_self_inventory<EOL>return self._self_inventory<EOL>
Inventory output will only contain the server name and the session ID
when a key is provided. Provide the same format as with the full
inventory instead for consistency.