diff options
author | Stephen Ford <stephen.ford@digital.cabinet-office.gov.uk> | 2018-05-16 09:48:49 -0600 |
---|---|---|
committer | Chad Smith <chad.smith@canonical.com> | 2018-05-16 09:48:49 -0600 |
commit | c2494322282575360a6eef3b02a80a3e3e5061d3 (patch) | |
tree | 71e2f3e1f517bff96a5e32eaaf4a2b934f6122c2 | |
parent | 589b542bfb3b6630b931a506ca017635059cef1d (diff) | |
download | vyos-cloud-init-c2494322282575360a6eef3b02a80a3e3e5061d3.tar.gz vyos-cloud-init-c2494322282575360a6eef3b02a80a3e3e5061d3.zip |
typos: Fix spelling mistakes in cc_mounts.py log messages
This also makes some of the messages more consistent.
-rw-r--r-- | cloudinit/config/cc_mounts.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/cloudinit/config/cc_mounts.py b/cloudinit/config/cc_mounts.py index f14a4fc5..02bedaba 100644 --- a/cloudinit/config/cc_mounts.py +++ b/cloudinit/config/cc_mounts.py @@ -233,7 +233,7 @@ def setup_swapfile(fname, size=None, maxsize=None): try: memsize = util.read_meminfo()['total'] except IOError as e: - LOG.debug("Not creating swap. failed to read meminfo") + LOG.debug("Not creating swap: failed to read meminfo") return util.ensure_dir(tdir) @@ -280,17 +280,17 @@ def handle_swapcfg(swapcfg): if os.path.exists(fname): if not os.path.exists("/proc/swaps"): - LOG.debug("swap file %s existed. no /proc/swaps. Being safe.", + LOG.debug("swap file %s exists, but no /proc/swaps exists, being safe", fname) return fname try: for line in util.load_file("/proc/swaps").splitlines(): if line.startswith(fname + " "): - LOG.debug("swap file %s already in use.", fname) + LOG.debug("swap file %s already in use", fname) return fname - LOG.debug("swap file %s existed, but not in /proc/swaps", fname) + LOG.debug("swap file %s exists, but not in /proc/swaps", fname) except Exception: - LOG.warning("swap file %s existed. Error reading /proc/swaps", + LOG.warning("swap file %s exists. Error reading /proc/swaps", fname) return fname @@ -337,7 +337,7 @@ def handle(_name, cfg, cloud, log, _args): start = str(cfgmnt[i][0]) sanitized = sanitize_devname(start, cloud.device_name_to_device, log) if sanitized is None: - log.debug("Ignorming nonexistant named mount %s", start) + log.debug("Ignoring nonexistent named mount %s", start) continue if sanitized != start: @@ -374,7 +374,7 @@ def handle(_name, cfg, cloud, log, _args): start = defmnt[0] sanitized = sanitize_devname(start, cloud.device_name_to_device, log) if sanitized is None: - log.debug("Ignoring nonexistant default named mount %s", start) + log.debug("Ignoring nonexistent default named mount %s", start) continue if sanitized != start: log.debug("changed default device %s => %s" % (start, sanitized)) @@ -397,7 +397,7 @@ def handle(_name, cfg, cloud, log, _args): actlist = [] for x in cfgmnt: if x[1] is None: - log.debug("Skipping non-existent device named %s", x[0]) + log.debug("Skipping nonexistent device named %s", x[0]) else: actlist.append(x) @@ -406,7 +406,7 @@ def handle(_name, cfg, cloud, log, _args): actlist.append([swapret, "none", "swap", "sw", "0", "0"]) if len(actlist) == 0: - log.debug("No modifications to fstab needed.") + log.debug("No modifications to fstab needed") return comment = "comment=cloudconfig" |