Changeset 1643:256014a42248
- Timestamp:
- 06/03/08 16:41:50 (3 months ago)
- Author:
- klai@…
- Branch:
- default
- Message:
-
Allow registration of fields like OwnerURL and OwnerIcon? in SLS
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r1369
|
r1643
|
|
| 120 | 120 | } |
| 121 | 121 | } |
| | 122 | |
| | 123 | # Extra fields to register with the service location service |
| | 124 | SLSRegistrationFields = ( |
| | 125 | # Information about the machine's owner |
| | 126 | # These are only examples. Put the real ones in /etc/tycoon_aucd_local.conf |
| | 127 | #("OwnerURL", "http://tycoon.hpl.hp.com"), |
| | 128 | #("OwnerIcon", "http://tycoon.hpl.hp.com/~tycoon/dl/pictures/HPL-48x48.png"), |
| | 129 | ) |
-
|
r1616
|
r1643
|
|
| 284 | 284 | data['number'] = (keys[1] - keys[0]) + 1 |
| 285 | 285 | c['resources'][k] = data |
| | 286 | if hasattr(self.__options, "SLSRegistrationFields"): |
| | 287 | for k, v in self.__options.SLSRegistrationFields: |
| | 288 | c[k] = v |
| 286 | 289 | return c |
| 287 | 290 | |