'Direct callback for when ``--list`` is provided
Relies on the configuration generated from init to run
_inventory_group()'

def do_list(self):

    inventory = dict()
    for (group, contents) in self.config.items():
        group_response = self._inventory_group(group, contents)
        inventory.update(group_response)
    inventory.update({'_meta': self._meta})
    return json.dumps(inventory)
