- Timestamp:
- Feb 18, 2015, 7:24:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
opsi/server/dass-opsi-tools/usr/bin/opsiclient
r1175 r1176 74 74 print " last seen:", host["lastSeen"] 75 75 print " notes:", host["notes"] 76 print " depot:", self.clientGetDepot( src ) 76 77 77 78 print " products:" … … 142 143 return True 143 144 145 def clientGetDepot(self, name): 146 depot = self.rpc.configState_getHashes( [], { 147 "configId": "clientconfig.depot.id", 148 "objectId": name } ) 149 try: 150 return depot[0]["values"][0] 151 except (IndexError,KeyError): 152 return self.getOpsiConfigserverId() 144 153 145 154 def clientSetDepot(self, name, depot): … … 212 221 for i in productProperties_src: 213 222 use_default=False 223 default_value=None 214 224 for j in productProperties_default: 215 225 if i['productId'] == j['productId'] and i["propertyId"] == j["propertyId"]: 226 default_value = j['values'] 216 227 if i['values'] == j['values']: 217 228 use_default=True … … 221 232 print "(use default)" 222 233 else: 223 print "(set )"234 print "(set, default:", default_value, ")" 224 235 if not use_default: 225 236 i['objectId'] = dst
Note:
See TracChangeset
for help on using the changeset viewer.