Skip to content

Commit d47073c

Browse files
committed
ruff get_default_namespace_or
1 parent e40ea68 commit d47073c

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/warnet/bitcoin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from urllib3.exceptions import MaxRetryError
1313

1414
from .constants import BITCOINCORE_CONTAINER
15-
from .k8s import get_default_namespace, get_mission, pod_log, get_default_namespace_or
15+
from .k8s import get_default_namespace_or, get_mission, pod_log
1616
from .process import run_command
1717

1818

src/warnet/control.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from .k8s import (
2828
delete_pod,
2929
get_default_namespace,
30+
get_default_namespace_or,
3031
get_mission,
3132
get_namespaces,
3233
get_pod,
@@ -35,7 +36,7 @@
3536
snapshot_bitcoin_datadir,
3637
wait_for_init,
3738
wait_for_pod,
38-
write_file_to_container, get_default_namespace_or,
39+
write_file_to_container,
3940
)
4041
from .process import run_command, stream_command
4142

src/warnet/deploy.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@
2424
)
2525
from .k8s import (
2626
get_default_namespace,
27+
get_default_namespace_or,
2728
get_namespaces_by_prefix,
2829
wait_for_ingress_controller,
29-
wait_for_pod_ready, get_default_namespace_or,
30+
wait_for_pod_ready,
3031
)
3132
from .process import stream_command
3233

src/warnet/k8s.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,4 +424,3 @@ def get_service_accounts_in_namespace(namespace):
424424
# skip the default service account created by k8s
425425
service_accounts = run_command(command).split()
426426
return [sa for sa in service_accounts if sa != "default"]
427-

0 commit comments

Comments
 (0)