mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 19:40:12 +00:00
Provide error on useless api call
If making an api call against a noderange to set attributes and that noderange is blank, provide feedback to help user know that nothing happened.
This commit is contained in:
parent
22d79867c8
commit
5e6c66826f
@ -197,6 +197,10 @@ def create(nodes, element, configmanager, inputdata):
|
||||
|
||||
def update_nodes(nodes, element, configmanager, inputdata):
|
||||
updatedict = {}
|
||||
if not nodes:
|
||||
raise exc.InvalidArgumentException(
|
||||
'No action to take, noderange is empty (if trying to define '
|
||||
'group attributes, use nodegroupattrib)')
|
||||
for node in nodes:
|
||||
updatenode = inputdata.get_attributes(node, allattributes.node)
|
||||
clearattribs = []
|
||||
|
Loading…
Reference in New Issue
Block a user