summaryrefslogtreecommitdiff
path: root/cloudinit/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r--cloudinit/util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index 15444fed..ed12dada 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -1162,8 +1162,8 @@ def uptime():
return uptime_str
-def ensure_file(path):
- write_file(path, content='', omode="ab")
+def ensure_file(path, mode=0644):
+ write_file(path, content='', omode="ab", mode=mode)
def chmod(path, mode):