summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorDominic Schlegel <dominic.schlegel@hostpoint.ch>2019-10-16 13:49:43 +0000
committerServer Team CI Bot <josh.powers+server-team-bot@canonical.com>2019-10-16 13:49:43 +0000
commit26e1f063677d974ab3b1a48e010e732a538b9a8d (patch)
tree7b4148e91f72224ddbf530aa07368872c0638d6e /cloudinit
parent823708ea031290c864e3aef67f60f6eb495f281d (diff)
downloadvyos-cloud-init-26e1f063677d974ab3b1a48e010e732a538b9a8d.tar.gz
vyos-cloud-init-26e1f063677d974ab3b1a48e010e732a538b9a8d.zip
Small typo fixes in code comments.
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/stages.py2
-rw-r--r--cloudinit/templater.py4
-rw-r--r--cloudinit/url_helper.py6
3 files changed, 6 insertions, 6 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index 50129884..77c21de0 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -501,7 +501,7 @@ class Init(object):
# Init the handlers first
for (_ctype, mod) in c_handlers.items():
if mod in c_handlers.initialized:
- # Avoid initing the same module twice (if said module
+ # Avoid initiating the same module twice (if said module
# is registered to more than one content-type).
continue
handlers.call_begin(mod, data, frequency)
diff --git a/cloudinit/templater.py b/cloudinit/templater.py
index b668674b..e47cdeda 100644
--- a/cloudinit/templater.py
+++ b/cloudinit/templater.py
@@ -44,7 +44,7 @@ MISSING_JINJA_PREFIX = u'CI_MISSING_JINJA_VAR/'
@implements_to_string # Needed for python2.7. Otherwise cached super.__str__
class UndefinedJinjaVariable(JUndefined):
- """Class used to represent any undefined jinja template varible."""
+ """Class used to represent any undefined jinja template variable."""
def __str__(self):
return u'%s%s' % (MISSING_JINJA_PREFIX, self._undefined_name)
@@ -58,7 +58,7 @@ class UndefinedJinjaVariable(JUndefined):
def basic_render(content, params):
- """This does sumple replacement of bash variable like templates.
+ """This does simple replacement of bash variable like templates.
It identifies patterns like ${a} or $a and can also identify patterns like
${a.b} or $a.b which will look for a key 'b' in the dictionary rooted
diff --git a/cloudinit/url_helper.py b/cloudinit/url_helper.py
index 44ee61d4..0f4c36f7 100644
--- a/cloudinit/url_helper.py
+++ b/cloudinit/url_helper.py
@@ -326,10 +326,10 @@ def wait_for_url(urls, max_wait=None, timeout=None,
sleep_time_cb: call method with 2 arguments (response, loop_n) that
generates the next sleep time.
- the idea of this routine is to wait for the EC2 metdata service to
+ the idea of this routine is to wait for the EC2 metadata service to
come up. On both Eucalyptus and EC2 we have seen the case where
the instance hit the MD before the MD service was up. EC2 seems
- to have permenantely fixed this, though.
+ to have permanently fixed this, though.
In openstack, the metadata service might be painfully slow, and
unable to avoid hitting a timeout of even up to 10 seconds or more
@@ -338,7 +338,7 @@ def wait_for_url(urls, max_wait=None, timeout=None,
Offset those needs with the need to not hang forever (and block boot)
on a system where cloud-init is configured to look for EC2 Metadata
service but is not going to find one. It is possible that the instance
- data host (169.254.169.254) may be firewalled off Entirely for a sytem,
+ data host (169.254.169.254) may be firewalled off Entirely for a system,
meaning that the connection will block forever unless a timeout is set.
A value of None for max_wait will retry indefinitely.