2
0
mirror of https://github.com/xcat2/confluent.git synced 2026-09-29 00:31:09 +00:00

If 'firm' appears as the argument, make it nodefirmware

This better enables use of alias rinv to nodeinventory.  Though it
is a smidge slower than nodefirmware.
This commit is contained in:
Jarrod Johnson
2017-04-28 13:52:13 -04:00
parent 412166922a
commit d1abace7da
+2
View File
@@ -77,6 +77,8 @@ try:
except IndexError:
argparser.print_help()
sys.exit(1)
if args[1] == 'firm':
exec(['nodefirmware', noderange])
try:
session = client.Command()
for res in session.read('/noderange/{0}/inventory/hardware/all/all'.format(