in chef_inventory.py [0:0]
def execute(self):
args = self.parser.parse_args()
if args.refresh_cache:
self.refresh_cache()
elif not self.is_cache_valid():
self.refresh_cache()
if args.list:
self.list_nodes()
elif args.host:
print(json.dumps(dict())) ## not implemented. May cause issues for old versions of ansible?
else:
self.parser.parse_args(['-h'])