We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158f4f3 commit 8e768c5Copy full SHA for 8e768c5
scompose/project/instance.py
@@ -206,7 +206,17 @@ def run_post(self):
206
if not isinstance(command, list):
207
command = shlex.split(command)
208
209
- self.client._run_command(command, quiet=True)
+ # Capture the return code
210
+ response = self.client._run_command(command,
211
+ quiet=True,
212
+ return_result=True)
213
+ # If debug on, show output
214
+ bot.debug("".join(response['message']))
215
+
216
+ # Alert the user if there is an error
217
+ if response['return_code'] != 0:
218
+ bot.error("".join(response['message']))
219
+ bot.exit("Return code %s, exiting." % response['return_code'])
220
221
# Image
222
0 commit comments