2
0
mirror of https://github.com/xcat2/confluent.git synced 2025-02-23 22:11:19 +00:00

Amend nodegrouplist command

This commit is contained in:
Jarrod Johnson 2019-02-28 10:24:24 -05:00
parent c43365d2dd
commit 1248894cf3
2 changed files with 18 additions and 3 deletions

View File

@ -45,15 +45,16 @@ def main():
showtype='all'
requestargs=args[1:]
nodetype='noderange'
if len(args) > 1:
exitcode=client.printattributes(session,requestargs,showtype,nodetype,noderange,options)
if len(args) > 0:
argparser.print_help()
sys.exit(1)
else:
for res in session.read(nodelist):
if 'error' in res:
sys.stderr.write(res['error'] + '\n')
exitcode = 1
else:
print res['item']['href'].replace('/', '')
print(res['item']['href'].replace('/', ''))
sys.exit(exitcode)

View File

@ -0,0 +1,14 @@
nodegroupattrib(8) -- List or change confluent nodegroup attributes
===================================================================
## SYNOPSIS
`nodegrouplist`
## DESCRIPTION
`nodegrouplist` lists the currently defined groups in confluent.
## SEE ALSO
nodeattrib(8), nodeattribexpressions(5), nodegroupattrib(8)