-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
When script is run w/o argument. It should throw hint that is expects an argument in form if file.
psachin@nubia:[master :) ]$ python parsing_introspection_data.py
Traceback (most recent call last):
File "parsing_introspection_data.py", line 14, in <module>
with open(sys.argv[1]) as data_file:
IndexError: list index out of range
Output not in pretty table form?
psachin@nubia:[master :) ]$ python parsing_introspection_data.py instackenv.json
1: nodes
Enter one numeric value: 1
[{'arch': 'x86_64', 'mac': ['2c:c2:60:57:0f:54'], 'pm_user': 'admin', 'cpu': '2', 'pm_addr': '10.10.10.11', 'pm_type': 'pxe_ipmitool', 'pm_password': 'redhat', 'disk': '25', 'memory': '8192'}, {'arch': 'x86_64', 'mac': ['2c:c2:60:12:57:c4'], 'pm_user': 'admin', 'cpu': '2', 'pm_addr': '10.10.10.12', 'pm_type': 'pxe_ipmitool', 'pm_password': 'redhat', 'disk': '25', 'memory': '8192'}, {'arch': 'x86_64', 'mac': ['2c:c2:60:2f:a4:66'], 'pm_user': 'admin', 'cpu': '2', 'pm_addr': '10.10.10.13', 'pm_type': 'pxe_ipmitool', 'pm_password': 'redhat', 'disk': '25', 'memory': '8192'}]
Metadata
Metadata
Assignees
Labels
No labels