diff --git a/lib/cdist/util/fsproperty.py b/lib/cdist/util/fsproperty.py index e441533a..cfdb007e 100644 --- a/lib/cdist/util/fsproperty.py +++ b/lib/cdist/util/fsproperty.py @@ -43,7 +43,11 @@ class FileList(collections.MutableSequence): self.path = path if initial: # delete existing file - os.unlink(self.path) + try: + os.unlink(self.path) + except EnvironmentError: + # ignored + pass for i in initial: self.append(i)