diff options
Diffstat (limited to 'ec2init/__init__.py')
-rw-r--r-- | ec2init/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ec2init/__init__.py b/ec2init/__init__.py index b88e3ddd..918b9280 100644 --- a/ec2init/__init__.py +++ b/ec2init/__init__.py @@ -162,6 +162,7 @@ class EC2Init: return("%s/%s.%s" % (semdir,name,freqtok)) def sem_has_run(self,name,freq): + if freq is "always": return False semfile = self.sem_getpath(name,freq) if os.path.exists(semfile): return True @@ -177,7 +178,7 @@ class EC2Init: if e.errno != errno.EEXIST: raise e - if os.path.exists(semfile): + if os.path.exists(semfile) and freq is not "always": return False # race condition |