Mercurial > code > home > repos > homeauto
comparison service/arduinoNode/pushConfig.py @ 1685:6b80a6c58907
minor changes to several services
author | drewp@bigasterisk.com |
---|---|
date | Mon, 27 Sep 2021 23:12:43 -0700 |
parents | 048a8df60e2e |
children |
comparison
equal
deleted
inserted
replaced
1684:c41af73a410f | 1685:6b80a6c58907 |
---|---|
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='bang', port=9022) | 7 etcd = etcd3.client(host='etcd-homeauto', 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)) |