File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
cli/macrostrat/cli/subsystems Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 7
7
from subprocess import run
8
8
from typing import List , Optional
9
9
10
- from macrostrat .utils import get_logger
11
10
from rich import print
12
11
from typer import Argument , Option , Typer
13
12
14
13
from macrostrat .core import app as app_
15
- from ..kubernetes import _kubectl , get_secret
14
+ from macrostrat .utils import get_logger
15
+
16
16
from ...core .exc import MacrostratError
17
+ from ..kubernetes import _kubectl , get_secret
17
18
18
19
settings = app_ .settings
19
20
@@ -36,10 +37,11 @@ def storage_admin(args: List[str] = Argument(None)):
36
37
"""
37
38
Run the Ceph Object Storage admin command.
38
39
"""
39
- from htpheno .radosgw_admin_client .cli import main , UserError
40
40
import sys
41
41
from os import environ
42
42
43
+ from htpheno .radosgw_admin_client .cli import UserError , main
44
+
43
45
environ ["RADOSGW_ACCESS_KEY" ] = access_key
44
46
environ ["RADOSGW_SECRET_KEY" ] = secret_key
45
47
environ ["RADOSGW_HOST" ] = re .sub ("^https?://" , "" , host )
Original file line number Diff line number Diff line change 4
4
5
5
from dotenv import load_dotenv
6
6
from dynaconf import Dynaconf , Validator
7
- from macrostrat .app_frame .control_command import BackendType
8
- from macrostrat .utils import get_logger
9
7
from pydantic import BaseModel
10
8
from sqlalchemy .engine import make_url
11
9
from sqlalchemy .engine .url import URL
12
10
from toml import load as load_toml
13
11
12
+ from macrostrat .app_frame .control_command import BackendType
13
+ from macrostrat .utils import get_logger
14
+
14
15
from .utils import find_macrostrat_config
15
16
16
17
log = get_logger (__name__ )
You can’t perform that action at this time.
0 commit comments