Import auth with try/except
To make it pass python2/3 linters and fix OVB stack creating. Change-Id: I6994f2f31cf16b9ccd73e8d92c029ff0789c54c1 Related-Bug: 1815660
This commit is contained in:
parent
76e951436c
commit
53c6fe95a8
@ -22,7 +22,11 @@ import yaml
|
||||
from heatclient.common import template_utils
|
||||
import os_client_config
|
||||
|
||||
from openstack_virtual_baremetal import auth
|
||||
# TODO(sshnaidm): To make this python3 friendly with relative imports
|
||||
try:
|
||||
from openstack_virtual_baremetal import auth
|
||||
except ImportError:
|
||||
import auth
|
||||
|
||||
|
||||
def _parse_args():
|
||||
|
Loading…
Reference in New Issue
Block a user