diff options
author | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-03-20 11:52:33 +0000 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2014-03-20 11:52:33 +0000 |
commit | 6d7c1190277425fe9badaf07a76e4f629a46e0f1 (patch) | |
tree | a42c8c1d04dd691055111efee3a8cdb923842f5a | |
parent | 7f23f73ddaba4f7b498b4330b2fa2a3f03a004dd (diff) |
fixed typos
-rwxr-xr-x | prepare-config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/prepare-config.py b/prepare-config.py index ab0c70a..13ae4e8 100755 --- a/prepare-config.py +++ b/prepare-config.py @@ -24,11 +24,11 @@ if __name__ == '__main__': lava_cache_file = open(LAVA_CACHE_PATH, 'r') lava_cache_regexp = re.compile("^(?P<device_id>[a-zA-Z0-9_\-]+):(?P<key>[a-zA-Z0-9_\-]+)=(?P<value>.*)$") ipaddr = None - for line in lava_cache_file.readlines() + for line in lava_cache_file.readlines(): print line lava_cache_match = lava_cache_regexp.search(line) if lava_cache_match: - if lava_cache_match.group("key") == options.prefix + IPADDR + if lava_cache_match.group("key") == options.prefix + IPADDR: ipaddr = lava_cache_match.group("value") ipaddr_file = open(IPADDR_FILE, "w") ipaddr_file.write(ipaddr) |