Merge "Fix h305 python import order issue"

This commit is contained in:
Jenkins 2016-11-22 08:00:56 +00:00 committed by Gerrit Code Review
commit 136f6825c2
13 changed files with 30 additions and 10 deletions

View File

@ -1,4 +1,8 @@
plasma Style Commandments Valence Style Commandments
=============================================== ===========================
Read the OpenStack Style Commandments http://docs.openstack.org/developer/hacking/ Read the OpenStack Style Commandments
http://docs.openstack.org/developer/hacking/
- [H305] Organize your imports according to 'Import order template' mentioned
in http://docs.openstack.org/developer/hacking/#import-order-template

View File

@ -10,9 +10,11 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
from flask import Flask
import logging import logging
from logging.handlers import RotatingFileHandler from logging.handlers import RotatingFileHandler
from flask import Flask
from valence import config as cfg from valence import config as cfg
_app = None _app = None

View File

@ -14,6 +14,7 @@
from flask import request from flask import request
from valence.api import base from valence.api import base
from valence.api import types from valence.api import types

View File

@ -12,11 +12,13 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json
from flask import abort from flask import abort
from flask import request from flask import request
from flask import Response from flask import Response
from flask_restful import Resource from flask_restful import Resource
import json
from valence.api import base from valence.api import base
from valence.api import link from valence.api import link
from valence.api import types from valence.api import types

View File

@ -14,6 +14,7 @@
from flask_cors import CORS from flask_cors import CORS
from flask_restful import Api from flask_restful import Api
from valence.api import app as flaskapp from valence.api import app as flaskapp
from valence.api.root import PODMProxy from valence.api.root import PODMProxy
from valence.api.root import Root from valence.api.root import Root

View File

@ -11,6 +11,7 @@
# under the License. # under the License.
import logging import logging
import six import six
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -12,9 +12,11 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import logging
from flask import request from flask import request
from flask_restful import Resource from flask_restful import Resource
import logging
from valence.flavor import flavor from valence.flavor import flavor
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -12,11 +12,12 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import logging
from flask import request from flask import request
from flask_restful import abort from flask_restful import abort
from flask_restful import Resource from flask_restful import Resource
import logging
from valence.redfish import redfish as rfs from valence.redfish import redfish as rfs
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -12,9 +12,10 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import logging
from flask_restful import abort from flask_restful import abort
from flask_restful import Resource from flask_restful import Resource
import logging
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import logging
from flask import request from flask import request
from flask_restful import Resource from flask_restful import Resource
import logging
from valence.redfish import redfish as rfs from valence.redfish import redfish as rfs
LOG = logging.getLogger(__name__) LOG = logging.getLogger(__name__)

View File

@ -12,10 +12,11 @@
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import json
from flask import request from flask import request
from flask_restful import Resource from flask_restful import Resource
import json
from valence.api import base from valence.api import base
from valence.api import link from valence.api import link
from valence.api import types from valence.api import types

View File

@ -15,6 +15,7 @@
from importlib import import_module from importlib import import_module
import logging import logging
import os import os
from valence.redfish import redfish as rfs from valence.redfish import redfish as rfs
FLAVOR_PLUGIN_PATH = os.path.dirname(os.path.abspath(__file__)) + '/plugins' FLAVOR_PLUGIN_PATH = os.path.dirname(os.path.abspath(__file__)) + '/plugins'

View File

@ -16,8 +16,10 @@
import json import json
import logging import logging
import os import os
import requests import requests
from requests.auth import HTTPBasicAuth from requests.auth import HTTPBasicAuth
from valence import config as cfg from valence import config as cfg
from valence.redfish import tree from valence.redfish import tree