Skip to content

Commit 4d266e1

Browse files
authored
Add arguments to ns.create() method (#8)
* add ns create params * bumpup
1 parent 3cf0fe0 commit 4d266e1

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setuptools.setup(
77
name="staroid", # Replace with your own username
8-
version="0.0.9",
8+
version="0.1.0",
99
license='MIT',
1010
author="Staroid",
1111
author_email="support@staroid.com",

staroid/namespace.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def get_by_id(self, instance_id):
9595
logging.error("Can not get namespace {}", r.status_code)
9696
return None
9797

98-
def create(self, instance_name, commit_url):
98+
def create(self, instance_name, commit_url, dependencies=None, params=None):
9999
c = Commit(commit_url)
100100

101101
r = self.__staroid._api_post(
@@ -109,7 +109,9 @@ def create(self, instance_name, commit_url):
109109
"repo": c.repo(),
110110
"branch": c.branch(),
111111
"commit": c.commit(),
112-
"instanceName": instance_name
112+
"instanceName": instance_name,
113+
"dependencies": dependencies,
114+
"paramValues": params
113115
}
114116
)
115117
if r.status_code == 200:

0 commit comments

Comments
 (0)