Changeset 1100


Ignore:
Timestamp:
Sep 21, 2012, 4:55:30 PM (12 years ago)
Author:
joergs
Message:

fixes

File:
1 edited

Legend:

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

    r1096 r1100  
    1010
    1111opsi={
    12     'server': "https://degdepot2.joergs:4447/rpc",
     12    'server': "https://opsi.joergs.dass-it:4447/rpc",
    1313    'username': "joergs",
    1414    'password': "linuxlinux",
    1515    }
    1616
     17catalog="MyCatalog"   
     18   
    1719# "-d"
    1820opsiCallPrefix=[ "opsi-admin",  "-a", opsi['server'], "-u", opsi['username'], "-p", opsi['password'] ]
     
    4143    #print "  # Address =", ipAddress
    4244    fd.write( "  Password = " + properties['filedaemon_full_password'] + "\n" )
     45    fd.write( "  Catalog  = " + catalog + "\n" )
    4346    for i in params:
    4447        try:
     
    9093    clientsWithBacula=json.loads( subprocess.check_output( opsiCallPrefix + opsiCallClientsWithBacula ) )
    9194#except subprocess.CalledProcessError as e:
    92 except e:
    93     logger.exception( "%s: failed:" %(clientId) )
     95except BaseException as e:
     96    logger.exception( "failed: %s" %(e) )
    9497    exit(1)
    9598
     
    107110        file_opsi_jobs.write( "# automatically generated at {}\n".format( time.asctime() ) )
    108111        file_opsi_jobs.write( "#\n\n" )
    109     except e:
     112    except BaseException as e:       
    110113        logger.exception( "failed to create files" )
    111114        exit(1)
Note: See TracChangeset for help on using the changeset viewer.