summaryrefslogtreecommitdiff
path: root/cloudinit/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'cloudinit/util.py')
-rw-r--r--cloudinit/util.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/cloudinit/util.py b/cloudinit/util.py
index 76d7db78..87480767 100644
--- a/cloudinit/util.py
+++ b/cloudinit/util.py
@@ -86,7 +86,7 @@ def get_architecture(target=None):
@lru_cache()
-def _lsb_release(target=None):
+def lsb_release(target=None):
fmap = {'Codename': 'codename', 'Description': 'description',
'Distributor ID': 'id', 'Release': 'release'}
@@ -109,14 +109,6 @@ def _lsb_release(target=None):
return data
-def lsb_release(target=None):
- if target_path(target) != "/":
- # do not use or update cache if target is provided
- return _lsb_release(target)
-
- return _lsb_release()
-
-
def target_path(target, path=None):
# return 'path' inside target, accepting target as None
if target in (None, ""):