File tree 14 files changed +42
-36
lines changed
14 files changed +42
-36
lines changed Original file line number Diff line number Diff line change 26
26
27
27
from __future__ import absolute_import
28
28
29
- __version__ = "0.7.1"
30
-
31
- from .logger import Logger
32
-
33
29
from .client import ContainerPlatformClient
34
-
35
30
from .exceptions import (
36
- ContainerPlatformClientException ,
37
31
APIException ,
38
- APIItemNotFoundException ,
39
32
APIItemConflictException ,
33
+ APIItemNotFoundException ,
34
+ ContainerPlatformClientException ,
40
35
)
36
+ from .logger import Logger
37
+
38
+ __version__ = "0.7.1"
Original file line number Diff line number Diff line change 21
21
"""Base classes for Controllers and Resources."""
22
22
23
23
import abc
24
+ import urllib
25
+
24
26
import polling
25
27
import six
26
-
27
28
from tabulate import tabulate
29
+
28
30
from hpecp .exceptions import APIItemNotFoundException
31
+
29
32
from .logger import Logger
30
- import urllib
31
33
32
34
_log = Logger .get_logger ()
33
35
Original file line number Diff line number Diff line change 18
18
# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
19
19
# OTHER DEALINGS IN THE SOFTWARE.
20
20
21
- from .base_resource import AbstractResourceController , AbstractResource
21
+ from .base_resource import AbstractResource , AbstractResourceController
22
22
23
23
24
24
class Catalog (AbstractResource ):
Original file line number Diff line number Diff line change 21
21
"""CLI Utilities."""
22
22
23
23
from collections import OrderedDict
24
- from six import string_types
25
24
from io import StringIO
26
- import six
27
25
26
+ import six
27
+ from six import string_types
28
28
29
29
# This class has been adapted from knack.
30
30
# See https://github.com/microsoft/knack/blob/master/LICENSE
Original file line number Diff line number Diff line change 22
22
23
23
from __future__ import absolute_import
24
24
25
+ import ast
26
+ import codecs
25
27
import json
28
+ import logging
26
29
import os
30
+ import re
27
31
from configparser import SafeConfigParser
28
32
29
- import logging
33
+ import pkg_resources
30
34
import requests
31
35
import six
36
+ from requests .structures import CaseInsensitiveDict
32
37
from six import raise_from
33
38
from urllib3 .exceptions import (
34
- NewConnectionError ,
35
39
ConnectTimeoutError ,
36
40
MaxRetryError ,
41
+ NewConnectionError ,
37
42
)
38
43
44
+ from hpecp .exceptions import APIForbiddenException
45
+
39
46
from .catalog import CatalogController
40
47
from .config import ConfigController
41
48
from .exceptions import (
54
61
from .role import RoleController
55
62
from .tenant import TenantController
56
63
from .user import UserController
57
- import codecs
58
- import ast
59
- from requests .structures import CaseInsensitiveDict
60
- from hpecp .exceptions import APIForbiddenException
61
- import re
62
- import pkg_resources
63
64
64
65
try :
65
66
basestring
Original file line number Diff line number Diff line change 22
22
23
23
from enum import Enum
24
24
25
- from . exceptions import APIItemNotFoundException
25
+ from requests . structures import CaseInsensitiveDict
26
26
27
- from .base_resource import AbstractWaitableResourceController , AbstractResource
28
27
from hpecp .base_resource import ResourceList
29
- from requests .structures import CaseInsensitiveDict
28
+
29
+ from .base_resource import AbstractResource , AbstractWaitableResourceController
30
+ from .exceptions import APIItemNotFoundException
30
31
31
32
try :
32
33
basestring
Original file line number Diff line number Diff line change 20
20
21
21
from __future__ import absolute_import
22
22
23
- from .base_resource import AbstractWaitableResourceController , AbstractResource
24
-
25
- from enum import Enum
26
23
import re
24
+ from enum import Enum
25
+
27
26
from requests .structures import CaseInsensitiveDict
28
27
28
+ from .base_resource import AbstractResource , AbstractWaitableResourceController
29
+
29
30
try :
30
31
basestring
31
32
except NameError :
Original file line number Diff line number Diff line change 20
20
21
21
from __future__ import absolute_import
22
22
23
- from .base_resource import AbstractWaitableResourceController , AbstractResource
24
-
25
23
from enum import Enum
24
+
26
25
from requests .structures import CaseInsensitiveDict
27
26
27
+ from .base_resource import AbstractResource , AbstractWaitableResourceController
28
+
28
29
try :
29
30
basestring
30
31
except NameError :
Original file line number Diff line number Diff line change 20
20
21
21
from __future__ import absolute_import
22
22
23
-
24
23
import urllib
24
+
25
25
from requests .structures import CaseInsensitiveDict
26
26
27
27
Original file line number Diff line number Diff line change 20
20
21
21
from __future__ import absolute_import
22
22
23
- import polling
24
23
import re
24
+
25
+ import polling
25
26
from requests .structures import CaseInsensitiveDict
26
27
27
28
try :
Original file line number Diff line number Diff line change 22
22
23
23
import re
24
24
25
- from .base_resource import AbstractResourceController , AbstractResource
25
+ from .base_resource import AbstractResource , AbstractResourceController
26
26
27
27
try :
28
28
basestring
Original file line number Diff line number Diff line change 24
24
25
25
from requests .structures import CaseInsensitiveDict
26
26
27
- from .base_resource import AbstractWaitableResourceController , AbstractResource
28
- from hpecp .exceptions import ContainerPlatformClientException
29
27
from hpecp .base_resource import ResourceList
28
+ from hpecp .exceptions import ContainerPlatformClientException
30
29
from hpecp .user import User
31
30
31
+ from .base_resource import AbstractResource , AbstractWaitableResourceController
32
+
32
33
try :
33
34
basestring
34
35
except NameError :
Original file line number Diff line number Diff line change 20
20
21
21
from __future__ import absolute_import
22
22
23
- from .base_resource import AbstractResourceController , AbstractResource
24
-
25
23
from requests .structures import CaseInsensitiveDict
26
24
25
+ from .base_resource import AbstractResource , AbstractResourceController
26
+
27
27
try :
28
28
basestring
29
29
except NameError :
Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- isort --check-only tests/* .py bin/* .py
5
+ isort --check-only tests/* .py bin/* .py hpecp/ ** .py
6
6
7
7
black bin/ tests/ hpecp/
8
8
You can’t perform that action at this time.
0 commit comments