Island: Prepend 'agent' to everything having 'configuration' in new configuration resource
This commit is contained in:
parent
0d8cc713d2
commit
8c14423c4e
|
@ -31,8 +31,8 @@ class ResponseContents:
|
||||||
return self.__dict__
|
return self.__dict__
|
||||||
|
|
||||||
|
|
||||||
class Configuration(AbstractResource):
|
class AgentConfiguration(AbstractResource):
|
||||||
urls = ["/api/configuration"]
|
urls = ["/api/agent-configuration"]
|
||||||
|
|
||||||
def __init__(self, agent_configuration_repository: IAgentConfigurationRepository):
|
def __init__(self, agent_configuration_repository: IAgentConfigurationRepository):
|
||||||
self._agent_configuration_repository = agent_configuration_repository
|
self._agent_configuration_repository = agent_configuration_repository
|
||||||
|
@ -46,7 +46,7 @@ class Configuration(AbstractResource):
|
||||||
def post(self):
|
def post(self):
|
||||||
request_contents = json.loads(request.data)
|
request_contents = json.loads(request.data)
|
||||||
configuration_json = json.loads(request_contents["config"])
|
configuration_json = json.loads(request_contents["config"])
|
||||||
Configuration._remove_metadata_from_config(configuration_json)
|
AgentConfiguration._remove_metadata_from_config(configuration_json)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Q: encryption is moving to the frontend; also check this in the frontend?
|
# Q: encryption is moving to the frontend; also check this in the frontend?
|
||||||
|
|
Loading…
Reference in New Issue