summaryrefslogtreecommitdiff
path: root/cloudinit
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2016-05-26 16:02:53 -0400
committerScott Moser <smoser@ubuntu.com>2016-05-26 16:02:53 -0400
commit1174e19116f2934f927d89fe00ed8d6e22983d75 (patch)
treea4525de4e3e2c23c4f87c8f29467895406732fb3 /cloudinit
parentc21ef05925954e5781c793429316cd4eff64ee37 (diff)
downloadvyos-cloud-init-1174e19116f2934f927d89fe00ed8d6e22983d75.tar.gz
vyos-cloud-init-1174e19116f2934f927d89fe00ed8d6e22983d75.zip
fix logic in is_new_instance
Diffstat (limited to 'cloudinit')
-rw-r--r--cloudinit/stages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cloudinit/stages.py b/cloudinit/stages.py
index cbf4df8b..e34662b1 100644
--- a/cloudinit/stages.py
+++ b/cloudinit/stages.py
@@ -349,7 +349,7 @@ class Init(object):
return self._previous_iid
def is_new_instance(self):
- return self.datasource.get_instance_id() == self.previous_iid()
+ return self.datasource.get_instance_id() != self.previous_iid()
def fetch(self, existing="check"):
return self._get_data_source(existing=existing)