Add operation and type since set option is batch command
This commit is contained in:
@@ -4,6 +4,8 @@ from .batch_cmd import execute_batch_command
|
||||
|
||||
|
||||
def set_option(name: str, cs: ChangeSet) -> ChangeSet:
|
||||
cs.operations[0]['operation'] = API_UPDATE
|
||||
cs.operations[0]['type'] = 'option'
|
||||
new_cs = cs
|
||||
new_cs.merge(generate_v3(cs))
|
||||
return execute_batch_command(name, new_cs)
|
||||
|
||||
Reference in New Issue
Block a user