~ttx/swift/final-1.4.0

« back to all changes in this revision

Viewing changes to bin/swauth-add-user

  • 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:
90
90
                        ssl=(parsed.scheme == 'https'))
91
91
    resp = conn.getresponse()
92
92
    if resp.status // 100 != 2:
93
 
        print 'User creation failed: %s %s' % (resp.status, resp.reason)
 
93
        exit('User creation failed: %s %s' % (resp.status, resp.reason))