Skip to content
This repository was archived by the owner on Nov 12, 2021. It is now read-only.

Commit 7a01107

Browse files
committed
Rename 'production' to 'prod'
To align recent changes in pipeline repo we have to rename prod environment naming.
1 parent e3bb0e2 commit 7a01107

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

operatorcert/entrypoints/publish.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def setup_argparser() -> Any:
3131
parser.add_argument(
3232
"--environment",
3333
help="Environment where a tool runs",
34-
choices=["production", "stage", "dev", "qa"],
34+
choices=["prod", "stage", "dev", "qa"],
3535
default="dev",
3636
)
3737

operatorcert/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_registry_for_env(environment: str) -> str:
5959
str: Connect registry for current
6060
"""
6161
env_to_registry = {
62-
"production": "registry.connect.redhat.com",
62+
"prod": "registry.connect.redhat.com",
6363
"stage": "registry.connect.stage.redhat.com",
6464
"qa": "registry.connect.qa.redhat.com",
6565
"dev": "registry.connect.dev.redhat.com",

tests/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def test_store_results() -> None:
5353

5454

5555
def test_get_registry_for_env() -> None:
56-
assert utils.get_registry_for_env("production") == "registry.connect.redhat.com"
56+
assert utils.get_registry_for_env("prod") == "registry.connect.redhat.com"
5757
assert utils.get_registry_for_env("stage") == "registry.connect.stage.redhat.com"
5858
assert utils.get_registry_for_env("qa") == "registry.connect.qa.redhat.com"
5959
assert utils.get_registry_for_env("dev") == "registry.connect.dev.redhat.com"

0 commit comments

Comments
 (0)