diff options
author | Jannik Schönartz | 2021-06-01 14:58:41 +0200 |
---|---|---|
committer | Jannik Schönartz | 2021-06-01 14:58:41 +0200 |
commit | e4127bc15df426a0a819f6eed28ca143a468d5b2 (patch) | |
tree | 73062d2a8129782a1d94b117034e32891cd4aae4 | |
parent | [bas-python] Add optional contact information argument (first-/lastname) (diff) | |
download | systemd-init-e4127bc15df426a0a819f6eed28ca143a468d5b2.tar.gz systemd-init-e4127bc15df426a0a819f6eed28ca143a468d5b2.tar.xz systemd-init-e4127bc15df426a0a819f6eed28ca143a468d5b2.zip |
[bas-python] Add clientname as parameter
-rwxr-xr-x | modules.d/bas-python/scripts/collect_hw_info_json.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/bas-python/scripts/collect_hw_info_json.py b/modules.d/bas-python/scripts/collect_hw_info_json.py index d52a9ad2..8695ff64 100755 --- a/modules.d/bas-python/scripts/collect_hw_info_json.py +++ b/modules.d/bas-python/scripts/collect_hw_info_json.py @@ -220,6 +220,7 @@ def main(): parser.add_argument('-b', '--bay', action='store', help='<bay>') parser.add_argument('-l', '--location', action='store', help='<location>: Roomname where the client is located') parser.add_argument('-c', '--contact', action='append', help='<contact>: <firstname> <lastname> of the person responsible for this machine', nargs=2) + parser.add_argument('-n', '--name', action='store', help='<name>: Name of the client') args = parser.parse_args() if args.debug: @@ -237,6 +238,7 @@ def main(): _collecthw['net'] = get_net_fallback() _collecthw['location'] = prepare_location(args.location, args.rack, args.bay, args.slot) _collecthw['contacts'] = prepare_contacts(args.contact) + _collecthw['name'] = args.name collecthw_json = json.dumps(_collecthw) if (args.url): |