isort the repo
This commit is contained in:
parent
604170f133
commit
92cca7f396
4 changed files with 6 additions and 8 deletions
|
@ -3,7 +3,6 @@ from sys import argv
|
||||||
|
|
||||||
from hnmp import SNMP
|
from hnmp import SNMP
|
||||||
|
|
||||||
|
|
||||||
snmp = SNMP(argv[2], community=argv[3])
|
snmp = SNMP(argv[2], community=argv[3])
|
||||||
|
|
||||||
single_value_metrics_int_oids = {
|
single_value_metrics_int_oids = {
|
||||||
|
|
|
@ -2,6 +2,7 @@ from os import environ
|
||||||
|
|
||||||
from bundlewrap.exceptions import SkipNode
|
from bundlewrap.exceptions import SkipNode
|
||||||
|
|
||||||
|
|
||||||
def node_apply_start(repo, node, interactive=False, **kwargs):
|
def node_apply_start(repo, node, interactive=False, **kwargs):
|
||||||
if environ.get('BW_VAULT_DUMMY_MODE') or environ.get('BW_PASS_DUMMY_MODE'):
|
if environ.get('BW_VAULT_DUMMY_MODE') or environ.get('BW_PASS_DUMMY_MODE'):
|
||||||
raise SkipNode('refusing apply because dummy mode is active')
|
raise SkipNode('refusing apply because dummy mode is active')
|
||||||
|
|
10
libs/ssh.py
10
libs/ssh.py
|
@ -3,12 +3,10 @@ from functools import lru_cache
|
||||||
from hashlib import sha3_224
|
from hashlib import sha3_224
|
||||||
|
|
||||||
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
|
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
|
||||||
from cryptography.hazmat.primitives.serialization import (
|
from cryptography.hazmat.primitives.serialization import (Encoding,
|
||||||
Encoding,
|
NoEncryption,
|
||||||
NoEncryption,
|
PrivateFormat,
|
||||||
PrivateFormat,
|
PublicFormat)
|
||||||
PublicFormat,
|
|
||||||
)
|
|
||||||
|
|
||||||
from bundlewrap.utils import Fault
|
from bundlewrap.utils import Fault
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@
|
||||||
from os import environ
|
from os import environ
|
||||||
from sys import argv
|
from sys import argv
|
||||||
|
|
||||||
from bundlewrap.metagen import NodeMetadataProxy
|
|
||||||
from bundlewrap.exceptions import FaultUnavailable
|
from bundlewrap.exceptions import FaultUnavailable
|
||||||
|
from bundlewrap.metagen import NodeMetadataProxy
|
||||||
from bundlewrap.repo import Repository
|
from bundlewrap.repo import Repository
|
||||||
from bundlewrap.utils import Fault
|
from bundlewrap.utils import Fault
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue