Import only modules and update tox.ini
As stated in the OpenStack Hacking Guidelines, it is prefered that only modules should be imported. Also updated tox.ini to ignore opestack/common among others. Change-Id: I2f0a603c31052eadee581c11880c0ec6bd392829
This commit is contained in:
@@ -25,7 +25,6 @@ import getpass
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
from os.path import expanduser
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
@@ -551,7 +550,7 @@ class OpenStackImagesShell(object):
|
||||
return client
|
||||
|
||||
def _cache_schemas(self, options, home_dir='~/.glanceclient'):
|
||||
homedir = expanduser(home_dir)
|
||||
homedir = os.path.expanduser(home_dir)
|
||||
if not os.path.exists(homedir):
|
||||
try:
|
||||
os.makedirs(homedir)
|
||||
|
||||
Reference in New Issue
Block a user