Changeset 1052 for opsi


Ignore:
Timestamp:
08/15/12 15:23:32 (8 years ago)
Author:
joergs
Message:

beautified

File:
1 edited

Legend:

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

    r1051 r1052  
    4444            return False
    4545        print src + ":"
     46        host = self.rpc.host_getHashes( [], {"id":src} )[0]
     47        print "  IP:", host["ipAddress"]
     48        print "  MAC:", host["hardwareAddress"]
     49        print "  inventory:", host["inventoryNumber"]
     50        print "  last seen:", host["lastSeen"]
     51        print "  notes:", host["notes"]
     52       
     53        print "  products:"
    4654        products = self.getProductOnClient( src, [] )
    4755        for i in products:
    48             print i['productId'] + ": (", i['actionRequest'], i['actionProgress'], ")", i['installationStatus']
    49             pprint( i, indent=4 )
     56            print "    " + i['productId'] + ":"
     57            print "      " + i['installationStatus'], "(",
     58            if i['actionRequest']:
     59                print i['actionRequest'],
     60                if i['actionProgress']:
     61                    print i['actionProgress'],
     62            print ")"
     63            print "      ",
     64            pprint( i, indent=8 )
    5065        return True
    5166
     
    7792        #  opsiCallClientBaculaProperties=[ "method", "getProductProperties_hash", "bacula" ]
    7893        print "done"
     94        return True
    7995
    8096       
     
    146162        result = opsi.clean( args.src )
    147163    elif args.subcommand == "copy":
    148         opsi.copyClient( args.src, args.dst, args.ip, args.mac, args.depot )
     164        result = opsi.copyClient( args.src, args.dst, args.ip, args.mac, args.depot )
    149165    else:
    150166        print "not yet implemented"
Note: See TracChangeset for help on using the changeset viewer.