Changeset 1067 for opsi/server/dass-opsi-tools
- Timestamp:
- Aug 16, 2012, 2:11:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
opsi/server/dass-opsi-tools/usr/bin/opsi-client
r1065 r1067 89 89 return True 90 90 91 def copyClient( self, src, dst, ipAddress = None, hardwareAddress = None, depot = None ): 91 def createClient(self, name, opsiHostKey, description, notes, hardwareAddress, ipAddress): 92 self.rpc.host_createOpsiClient( name, opsiHostKey, description, notes, hardwareAddress, ipAddress ) 93 94 def clientSetDepot(self, name, depot): 95 self.rpc.configState_create( "clientconfig.depot.id", name, depot ) 96 97 def copyClient( self, src, dst, ipAddress = None, hardwareAddress = None, depot = None, description = "" ): 92 98 93 99 print "create/update", dst, "from template", src + ":", … … 96 102 "type" : "OpsiClient", 97 103 "notes" : "copy of " + src, 98 #"description" : "",104 "description" : description, 99 105 #"inventoryNumber" : "", 100 106 } … … 110 116 111 117 if depot: 112 self. rpc.configState_create( "clientconfig.depot.id", dst, depot )118 self.clientSetDepot(dst,depot) 113 119 114 120 if self.debug:
Note:
See TracChangeset
for help on using the changeset viewer.