Skip to content

Commit

Permalink
Merge pull request #606 from cvaroqui/lxc-config-path-fix
Browse files Browse the repository at this point in the history
Fix a case of lxc config file location set to None
  • Loading branch information
cvaroqui committed Mar 6, 2023
2 parents a981098 + 414c5de commit af09589
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensvc/drivers/resource/container/lxc/__init__.py
Expand Up @@ -636,7 +636,7 @@ def get_cf_path(self):
path = which('lxc-info')
if path is None:
return
dpath = os.path.dirname(path)
dpath = os.path.dirname(os.path.realpath(path))
if not dpath.endswith("bin"):
return
dpath = os.path.realpath(os.path.join(dpath, ".."))
Expand Down

0 comments on commit af09589

Please sign in to comment.