Skip to content

Commit

Permalink
Remove unecessary calls to check_cmd_status().
Browse files Browse the repository at this point in the history
  • Loading branch information
MisterMartin committed Oct 17, 2018
1 parent 8f9ca8d commit db1b936
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions chords_control
Expand Up @@ -562,9 +562,7 @@ class ChordsGit:
# Insert proxy switch
curl_cmd[1:1] = proxy_switch

_, exit_status = os_cmd(cmd=curl_cmd)
check_cmd_status(exit_status=exit_status, cmd=curl_cmd,
err_msg='Unable to fetch '+file)
os_cmd(cmd=curl_cmd)

print

Expand Down Expand Up @@ -630,8 +628,7 @@ class Docker:
'--format',
'\"name\":\"{{.Names}}\", \"runningfor\":\"{{.RunningFor}}\", \"status\":\"{{.Status}}\", \"createdat\":\"{{.CreatedAt}}\", \"image\":\"{{.Image}}\"']

ps_result, exit_status = os_cmd(cmd=ps_cmd, printlines=False)
check_cmd_status(exit_status=exit_status, cmd=ps_cmd, err_msg='Unable to obtain container status')
ps_result, _ = os_cmd(cmd=ps_cmd, printlines=False)

ps_result = ps_result.split('\n')
containers = []
Expand Down

0 comments on commit db1b936

Please sign in to comment.