Revision 5b27346a

b/tools/setup-ssh
304 304

  
305 305
  SetupLogging(options)
306 306

  
307
  errs = 0
308

  
307 309
  all_keys = LoadPrivateKeys(options)
308 310

  
309 311
  passwd = None
......
345 347
        SetupSSH(transport)
346 348
        SetupNodeDaemon(transport)
347 349
      except errors.GenericError, err:
348
        logging.error("While doing setup on host %s an error occured: %s",
350
        logging.error("While doing setup on host %s an error occurred: %s",
349 351
                      host, err)
352
        errs += 1
350 353
    finally:
351 354
      transport.close()
352 355
      # this is needed for compatibility with older Paramiko or Python
353 356
      # versions
354 357
      transport.join()
355 358

  
359
    if errs > 0:
360
      sys.exit(1)
361

  
356 362

  
357 363
if __name__ == "__main__":
358 364
  main()

Also available in: Unified diff