Use the passed name to modify commands
This commit is contained in:
parent
2aaccfffa7
commit
62798f9ee8
|
@ -271,7 +271,6 @@ def userdata_modify(config, name, params):
|
||||||
API_arguments: args
|
API_arguments: args
|
||||||
API schema: {message}
|
API schema: {message}
|
||||||
"""
|
"""
|
||||||
name = params.get('name')
|
|
||||||
userdata_data = params.get('data')
|
userdata_data = params.get('data')
|
||||||
|
|
||||||
request_uri = get_request_uri(config, '/provisioner/userdata/{name}'.format(name=name))
|
request_uri = get_request_uri(config, '/provisioner/userdata/{name}'.format(name=name))
|
||||||
|
@ -400,7 +399,6 @@ def script_modify(config, name, params):
|
||||||
API_arguments: args
|
API_arguments: args
|
||||||
API schema: {message}
|
API schema: {message}
|
||||||
"""
|
"""
|
||||||
name = params.get('name')
|
|
||||||
script_data = params.get('data')
|
script_data = params.get('data')
|
||||||
|
|
||||||
request_uri = get_request_uri(config, '/provisioner/script/{name}'.format(name=name))
|
request_uri = get_request_uri(config, '/provisioner/script/{name}'.format(name=name))
|
||||||
|
|
Loading…
Reference in New Issue