mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fixing KeyError
This commit is contained in:
parent
6b2cda2861
commit
306b1ea6b8
1 changed files with 4 additions and 1 deletions
|
@ -200,7 +200,10 @@ def list_nodes_full(call=None, forOutput=True):
|
|||
value = str(value)
|
||||
ret[node['name']][item] = value
|
||||
page += 1
|
||||
fetch = 'next' in items['links']['pages']
|
||||
try:
|
||||
fetch = 'next' in items['links']['pages']
|
||||
except KeyError:
|
||||
fetch = False
|
||||
return ret
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue