Skip to content

Commit f61a040

Browse files
authored
Tmp (#92)
* return change error when run orchestration * fixed indentation * clean .idea directory
1 parent 9fd907a commit f61a040

File tree

6 files changed

+4
-25
lines changed

6 files changed

+4
-25
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.settings*
22
.project
3+
.idea
34
.pydevproject
45
*.pyc
56
build

.idea/misc.xml

-6
This file was deleted.

.idea/modules.xml

-8
This file was deleted.

.idea/vcs.xml

-6
This file was deleted.

comodit_client/api/host.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -1374,10 +1374,8 @@ def run_orchestration(self, orchestration_name):
13741374
@param orchestration_name: The name of orchestration.
13751375
@type orchestration_name: string
13761376
"""
1377-
1378-
result = self._http_client.update(self.url + "orchestration/" + orchestration_name + "/_run", decode = False)
1379-
return result.read().decode('utf-8')
1380-
1377+
return self._http_client.update(self.url + "orchestration/" + orchestration_name + "/_run", decode = True)
1378+
13811379
def get_orchestrations(self):
13821380
"""
13831381
Requests to get orchestrations available on host

comodit_client/control/actions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _run(self, argv):
4343

4444
if self._config.options.wait:
4545
for change in changes:
46-
host.wait_for_change_terminated(change)
46+
host.wait_for_change_terminated(str(change))
4747

4848
def _print_action_completions(self, param_num, argv):
4949
if param_num < 4:

0 commit comments

Comments
 (0)