Mercurial > code > home > repos > homeauto
comparison service/arduinoNode/pushConfig.py @ 623:048a8df60e2e
fix pushconfig host lookup
Ignore-this: d53a114fdfb3bd3bf355a0c7293a1c7b
author | drewp@bigasterisk.com |
---|---|
date | Wed, 07 Aug 2019 21:06:46 -0700 |
parents | 12f9f1838fb5 |
children | 6b80a6c58907 |
comparison
equal
deleted
inserted
replaced
622:4880a9868673 | 623:048a8df60e2e |
---|---|
2 import sys | 2 import sys |
3 import etcd3 | 3 import etcd3 |
4 | 4 |
5 from twisted.python.filepath import FilePath | 5 from twisted.python.filepath import FilePath |
6 | 6 |
7 etcd = etcd3.client(host='bang6', port=9022) | 7 etcd = etcd3.client(host='bang', port=9022) |
8 | 8 |
9 prefix, = sys.argv[1:] | 9 prefix, = sys.argv[1:] |
10 | 10 |
11 def main(): | 11 def main(): |
12 existing = set(md.key for v, md in etcd.get_prefix(prefix)) | 12 existing = set(md.key for v, md in etcd.get_prefix(prefix)) |