Skip to content

Commit 7c2d1aa

Browse files
authored
Merge pull request #35 from vsoch/run_command/quiet
tweaking run_command to use client level
2 parents 0b1dc75 + 500a9fb commit 7c2d1aa

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

spython/main/base/command.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def generate_bind_list(self, bindlist=None):
9898

9999

100100

101-
def run_command(self, cmd, sudo=False, quiet=False, capture=True):
101+
def run_command(self, cmd, sudo=False, capture=True):
102102
'''run_command is a wrapper for the global run_command, checking first
103103
for sudo and exiting on error if needed. The message is returned as
104104
a list of lines for the calling function to parse, and stdout uses
@@ -109,10 +109,9 @@ def run_command(self, cmd, sudo=False, quiet=False, capture=True):
109109
cmd: the command to run
110110
sudo: does the command require sudo?
111111
On success, returns result. Otherwise, exists on error
112-
quiet: suppress printing to the console
113112
114113
'''
115-
result = run_cmd(cmd, sudo=sudo, capture=capture, quiet=quiet)
114+
result = run_cmd(cmd, sudo=sudo, capture=capture, quiet=self.quiet)
116115
message = result['message']
117116
return_code = result['return_code']
118117

spython/main/inspect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ def inspect(self,image=None, json=True, app=None):
4747
cmd.append('--json')
4848

4949
cmd.append(image)
50-
output = self._run_command(cmd, quiet=self.quiet)
50+
output = self._run_command(cmd)
5151
#self.println(output,quiet=self.quiet)
5252
return output

0 commit comments

Comments
 (0)