slapos: add support for cliff 1.7.0.

parent 80fc4dad
...@@ -41,7 +41,11 @@ os.environ.setdefault('EDITOR', 'vi') ...@@ -41,7 +41,11 @@ os.environ.setdefault('EDITOR', 'vi')
import cliff import cliff
import cliff.app import cliff.app
from cliff.app import LOG try:
LOG = cliff.app.App.LOG
except AttributeError:
# Support for older (< 1.7.0) cliff versions
from cliff.app import LOG
import cliff.commandmanager import cliff.commandmanager
import slapos.version import slapos.version
......
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