summaryrefslogtreecommitdiff
path: root/cloudinit/config
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/config')
-rw-r--r--cloudinit/config/cc_snappy.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/cloudinit/config/cc_snappy.py b/cloudinit/config/cc_snappy.py
index de6fae4b..e664234a 100644
--- a/cloudinit/config/cc_snappy.py
+++ b/cloudinit/config/cc_snappy.py
@@ -194,11 +194,12 @@ def system_is_snappy():
def set_snappy_command():
+ global SNAPPY_CMD
if util.which("snappy-go"):
- SNAPPY_COMMAND = "snappy-go"
+ SNAPPY_CMD = "snappy-go"
else:
- SNAPPY_COMMAND = "snappy"
- LOG.debug("snappy command is '%s'", SNAPPY_COMMAND)
+ SNAPPY_CMD = "snappy"
+ LOG.debug("snappy command is '%s'", SNAPPY_CMD)
def handle(name, cfg, cloud, log, args):