Mercurial > code > home > repos > homeauto
diff service/arduinoNode/pushConfig.py @ 1148:8b4eda2cf0bd
fix pushconfig
Ignore-this: 36fd12eb507fbe027b9a00dbd78f13af
darcs-hash:a89764f2ad7791417d7c68d6ba30df92be97fe2c
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 14 Apr 2018 23:46:54 -0700 |
parents | db955e7943af |
children | 12f9f1838fb5 |
line wrap: on
line diff
--- a/service/arduinoNode/pushConfig.py Wed Apr 04 14:58:27 2018 -0700 +++ b/service/arduinoNode/pushConfig.py Sat Apr 14 23:46:54 2018 -0700 @@ -1,13 +1,14 @@ from __future__ import division - +import sys import etcd3 from twisted.python.filepath import FilePath etcd = etcd3.client(host='bang6') +prefix, = sys.argv[1:] + def main(): - prefix = b'arduino/' existing = set(md.key for v, md in etcd.get_prefix(prefix)) written = set() root = FilePath('config')