Changeset 2279:9a76b31548c2
- Timestamp:
- 08/27/08 18:33:40 (3 months ago)
- Author:
- dunker@…
- Branch:
- default
- Message:
-
join peer on join
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2278
|
r2279
|
|
| 50 | 50 | except: |
| 51 | 51 | return dumps("can't determine host/port") |
| | 52 | if host == cfg.get('host'): |
| | 53 | return |
| 52 | 54 | try: |
| 53 | 55 | input = getpostdata(request) |
| … |
… |
|
| 64 | 66 | url = 'http://%s/' % hp |
| 65 | 67 | cloud.addifping(name, url) |
| | 68 | try: |
| | 69 | if not users.exist(name): |
| | 70 | users.add(name, ["cloud@%s" % node.client.host, ], ['CLOUD', ]) |
| | 71 | except Exception, ex: |
| | 72 | pass |
| | 73 | self.join(cfg.get('name'), cfg.get('port'), url) |
| 66 | 74 | return dumps('node added') |
| 67 | 75 | |