|
|
@ -16,7 +16,7 @@ import click |
|
|
|
from minio import Minio, InvalidResponseError |
|
|
|
from minio.error import S3Error |
|
|
|
|
|
|
|
from acm.config import VERSION, default_config |
|
|
|
from acm.config import VERSION, get_default_config |
|
|
|
from acm.logging import setup_basic_logging, update_logging_level |
|
|
|
from acm.utility import get_string_sha256sum |
|
|
|
|
|
|
@ -295,9 +295,14 @@ def print_default_config(ctx, profile): |
|
|
|
Print the configuration |
|
|
|
""" |
|
|
|
if profile == "all": |
|
|
|
print(default_config().json(exclude_none=True, indent=2, sort_keys=True)) |
|
|
|
print(get_default_config().json(exclude_none=True, indent=2, sort_keys=True)) |
|
|
|
else: |
|
|
|
config = default_config() |
|
|
|
config = get_default_config() |
|
|
|
profile_names = config.get_profile_names() |
|
|
|
if profile in profile_names: |
|
|
|
print(config.get_profile(profile).json(exclude_none=True, indent=2, sort_keys=True)) |
|
|
|
else: |
|
|
|
print(f"Profile \"{profile}\" is not in {profile_names}") |
|
|
|
|
|
|
|
############################### |
|
|
|
# S3 Storage Focused Commands # |
|
|
|