Skip to content

Commit 18a2996

Browse files
committed
[LIB-901] add config field to install from ulr;
1 parent f9723dc commit 18a2996

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

syncano/models/custom_sockets.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,18 @@ def _find_endpoint(self, endpoint_name):
5858
return endpoint
5959
raise SyncanoValueError('Endpoint {} not found.'.format(endpoint_name))
6060

61-
def install_from_url(self, url, instance_name=None):
61+
def install_from_url(self, url, instance_name=None, config=None):
6262
instance_name = self.__class__.please.properties.get('instance_name') or instance_name
6363
instance = Instance.please.get(name=instance_name)
6464

6565
install_path = instance.links.sockets_install
6666
connection = self._get_connection()
67-
response = connection.request('POST', install_path, data={'name': self.name, 'install_url': url})
67+
config = config or {}
68+
response = connection.request('POST', install_path, data={
69+
'name': self.name,
70+
'install_url': url,
71+
'config': config
72+
})
6873

6974
return response
7075

0 commit comments

Comments
 (0)