Use the passed name to modify commands

This commit is contained in:
Joshua Boniface 2020-01-06 23:37:28 -05:00
parent 2aaccfffa7
commit 62798f9ee8
1 changed files with 0 additions and 2 deletions

View File

@ -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))