summaryrefslogtreecommitdiff
path: root/cloudinit/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/__init__.py')
-rw-r--r--cloudinit/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/__init__.py b/cloudinit/__init__.py
index 99cc4d46..02147461 100644
--- a/cloudinit/__init__.py
+++ b/cloudinit/__init__.py
@@ -501,8 +501,9 @@ def initfs():
if g == "-1" or g == "None": g = None
util.chownbyname(log_file, u, g)
-def purge_cache():
- rmlist = ( boot_finished , cur_instance_link )
+def purge_cache(rmcur=True):
+ rmlist = [ boot_finished ]
+ if rmcur: rmlist.append(cur_instance_link)
for f in rmlist:
try:
os.unlink(f)