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:
Sagi Shnaidman 2019-01-29 11:10:33 +02:00 committed by Ben Nemec
parent 76e951436c
commit 53c6fe95a8
1 changed files with 5 additions and 1 deletions

View File

@ -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():