2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Correct mistake in the gathering of valid nodenames

This commit is contained in:
Jarrod Johnson 2023-04-26 15:37:08 -04:00
parent 3fd930137d
commit b9d0da0416

View File

@ -237,7 +237,7 @@ if __name__ == '__main__':
allok = True
uuidok = False
macok = False
valid_nodes = [node['item']['href'][:-1] for node in c.read('/nodes/')] #get all valiv nodes
valid_nodes = [node['item']['href'][:-1] for node in sess.read('/nodes/')] #get all valid nodes
for rsp in sess.read(f'/nodes/{args.node}/attributes/all'):
if rsp.get('errorcode', None) == 404:
emprint(f'There is no node named "{args.node}"')