Changeset 1108 for opsi


Ignore:
Timestamp:
09/22/12 17:57:22 (8 years ago)
Author:
joergs
Message:

exception for new property catalog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • opsi/server/dass-opsi-tools/usr/bin/opsi-bacula-server-conf.py

    r1105 r1108  
    1010
    1111opsi={
    12     'server': "https://opsi.joergs.dass-it:4447/rpc",
     12    'server': "https://opsi4.joergs.dass-it:4447/rpc",
    1313    'username': "joergs",
    1414    'password': "linuxlinux",
     
    4343    #print "  # Address =", ipAddress
    4444    fd.write( '  Password = "' + properties['filedaemon_full_password'] + '"' + "\n" )
    45     fd.write( '  Catalog  = "' + properties['catalog'] + '"' + "\n" )
     45    try:
     46        catalog = properties['catalog']
     47    except KeyError:
     48        catalog = "MyCatalog"
     49    fd.write( '  Catalog  = "' + catalog + '"' + "\n" )
    4650    for i in params:
    4751        try:
Note: See TracChangeset for help on using the changeset viewer.