~notmyname/swift/container_stats

« back to all changes in this revision

Viewing changes to bin/swauth-set-account-service

  • Committer: Tarmac
  • Author(s): Greg Lange
  • Date: 2011-04-18 18:07:45 UTC
  • mfrom: (278.1.2 exit_codes)
  • Revision ID: tarmac-20110418180745-91d30qf9dhzfjsf1
swauth scripts now exit with proper exit codes

Show diffs side-by-side

added added

removed removed

Lines of Context:
70
70
    conn.send(body)
71
71
    resp = conn.getresponse()
72
72
    if resp.status // 100 != 2:
73
 
        print 'Service set failed: %s %s' % (resp.status, resp.reason)
 
73
        exit('Service set failed: %s %s' % (resp.status, resp.reason))