Commit 703c562d by Stéphane Graber

python: get_keys() doesn't require a path

The python binding was forcing the user to pass a base path to get_keys() even though the C binding doesn't require it. Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com> Acked-by: 's avatarSerge E. Hallyn <serge.hallyn@ubuntu.com>
parent f3c7020a
...@@ -400,11 +400,14 @@ class Container(_lxc.Container): ...@@ -400,11 +400,14 @@ class Container(_lxc.Container):
os.remove(path) os.remove(path)
return ips return ips
def get_keys(self, key): def get_keys(self, key=None):
""" """
Returns a list of valid sub-keys. Returns a list of valid sub-keys.
""" """
value = _lxc.Container.get_keys(self, key) if key:
value = _lxc.Container.get_keys(self, key)
else:
value = _lxc.Container.get_keys(self)
if value is False: if value is False:
return False return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment