Mercurial > code > home > repos > homeauto
comparison service/arduinoNode/pushConfig.py @ 1426:c3c2418d138c
fix pushconfig host lookup
Ignore-this: d53a114fdfb3bd3bf355a0c7293a1c7b
darcs-hash:6306237a7df35fffb57f27c31a971107608f979e
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Wed, 07 Aug 2019 21:06:46 -0700 |
parents | 672a3d830e7f |
children | 6b80a6c58907 |
comparison
equal
deleted
inserted
replaced
1425:75aaa0547d55 | 1426:c3c2418d138c |
---|---|
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)) |