- Timestamp:
- Sep 21, 2012, 4:55:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
opsi/server/dass-opsi-tools/usr/bin/opsi-bacula-server-conf.py
r1096 r1100 10 10 11 11 opsi={ 12 'server': "https:// degdepot2.joergs:4447/rpc",12 'server': "https://opsi.joergs.dass-it:4447/rpc", 13 13 'username': "joergs", 14 14 'password': "linuxlinux", 15 15 } 16 16 17 catalog="MyCatalog" 18 17 19 # "-d" 18 20 opsiCallPrefix=[ "opsi-admin", "-a", opsi['server'], "-u", opsi['username'], "-p", opsi['password'] ] … … 41 43 #print " # Address =", ipAddress 42 44 fd.write( " Password = " + properties['filedaemon_full_password'] + "\n" ) 45 fd.write( " Catalog = " + catalog + "\n" ) 43 46 for i in params: 44 47 try: … … 90 93 clientsWithBacula=json.loads( subprocess.check_output( opsiCallPrefix + opsiCallClientsWithBacula ) ) 91 94 #except subprocess.CalledProcessError as e: 92 except e:93 logger.exception( " %s: failed:" %(clientId) )95 except BaseException as e: 96 logger.exception( "failed: %s" %(e) ) 94 97 exit(1) 95 98 … … 107 110 file_opsi_jobs.write( "# automatically generated at {}\n".format( time.asctime() ) ) 108 111 file_opsi_jobs.write( "#\n\n" ) 109 except e:112 except BaseException as e: 110 113 logger.exception( "failed to create files" ) 111 114 exit(1)
Note:
See TracChangeset
for help on using the changeset viewer.