isort the repo
This commit is contained in:
parent
429bc2a7c6
commit
4122a7ccf8
33 changed files with 36 additions and 32 deletions
|
@ -1,4 +1,4 @@
|
|||
from json import loads, dumps
|
||||
from json import dumps, loads
|
||||
|
||||
from bundlewrap.metadata import metadata_to_json
|
||||
from bundlewrap.utils import Fault
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
from ipaddress import IPv4Network, ip_network
|
||||
from os.path import abspath, dirname, join
|
||||
from ipaddress import ip_network, IPv4Network
|
||||
|
||||
REPO_PATH = dirname(dirname(abspath(__file__)))
|
||||
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
import base64
|
||||
from nacl.public import PrivateKey
|
||||
|
||||
from nacl.encoding import Base64Encoder
|
||||
from nacl.public import PrivateKey
|
||||
|
||||
from bundlewrap.utils import Fault
|
||||
|
||||
|
||||
def gen_privkey(repo, identifier):
|
||||
return repo.vault.random_bytes_as_base64_for(identifier)
|
||||
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
from ipaddress import ip_address, ip_network, IPv4Address, IPv4Network
|
||||
from ipaddress import IPv4Address, IPv4Network, ip_address, ip_network
|
||||
|
||||
from bundlewrap.exceptions import NoSuchGroup, NoSuchNode, BundleError
|
||||
from bundlewrap.exceptions import BundleError, NoSuchGroup, NoSuchNode
|
||||
from bundlewrap.utils.text import bold, red
|
||||
from bundlewrap.utils.ui import io
|
||||
|
||||
|
||||
def resolve_identifier(repo, identifier):
|
||||
"""
|
||||
Try to resolve an identifier (group or node). Return a set of ip
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue