Changeset 1105 for opsi/server/dass-opsi-tools
- Timestamp:
- Sep 21, 2012, 5:54:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
opsi/server/dass-opsi-tools/usr/bin/opsi-bacula-server-conf.py
r1100 r1105 36 36 #AutoPrune = yes 37 37 #} 38 params = [ "FDPort", " Catalog", "FileRetention", "JobRetention", "AutoPrune" ]38 params = [ "FDPort", "FileRetention", "JobRetention", "AutoPrune" ] 39 39 fd.write( "Client {\n" ) 40 fd.write( " Name = " + properties['filedaemon_full_name']+ "\n" )41 fd.write( " Address = " + client['clientId']+ "\n" )40 fd.write( ' Name = "' + properties['filedaemon_full_name'] + '"' + "\n" ) 41 fd.write( ' Address = "' + client['clientId'] + '"' + "\n" ) 42 42 # ipAddress: method host_getObjects [] '{"id":client['clientId']}' 43 43 #print " # Address =", ipAddress 44 fd.write( " Password = " + properties['filedaemon_full_password']+ "\n" )45 fd.write( " Catalog = " + catalog+ "\n" )44 fd.write( ' Password = "' + properties['filedaemon_full_password'] + '"' + "\n" ) 45 fd.write( ' Catalog = "' + properties['catalog'] + '"' + "\n" ) 46 46 for i in params: 47 47 try: 48 fd.write( " " + i + " = " + properties[i.lower()]+ "\n" )48 fd.write( ' ' + i + ' = "' + properties[i.lower()] + '"' + "\n" ) 49 49 except KeyError: 50 fd.write( " # " + i + " = " + "\n" )50 fd.write( ' # ' + i + " = \n" ) 51 51 fd.write( "}\n") 52 52 fd.write( "\n" ) … … 65 65 params = [ "Fileset", "JobDefs" ] 66 66 fd.write( "Job {" + "\n" ) 67 fd.write( " Name = " + client['clientId'] + "-job"+ "\n" )68 fd.write( " Client = " + properties['filedaemon_full_name']+ "\n" )67 fd.write( ' Name = "' + client['clientId'] + '-job"' + "\n" ) 68 fd.write( ' Client = "' + properties['filedaemon_full_name'] + '"' + "\n" ) 69 69 for i in params: 70 70 fd.write( " " ) … … 72 72 if not properties[i.lower()]: 73 73 fd.write( "# " ) 74 fd.write( i + " = " + properties[i.lower()]+ "\n" )74 fd.write( i + ' = "' + properties[i.lower()] + '"' + "\n" ) 75 75 except KeyError: 76 76 fd.write( "# " + i + " = " + "\n" )
Note:
See TracChangeset
for help on using the changeset viewer.