Skip to content

Commit 0524eb6

Browse files
author
Jim Robinson
committed
Remove argument from cli recursive command
1 parent aae0e04 commit 0524eb6

File tree

5 files changed

+10
-11
lines changed

5 files changed

+10
-11
lines changed

nodejs/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nodejs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "croudtech-nodejs-aws-app-config",
3-
"version": "1.0.4",
3+
"version": "2.0.0",
44
"description": "Application config via AWS SSM Parameters",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/croudtech_python_aws_app_config/cli.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def get_parameters(
7171
include_common=include_common,
7272
click=click,
7373
endpoint_url=ctx.obj["AWS_ENDPOINT_URL"],
74-
put_metrics=ctx.obj["PUT_METRICS"]
74+
put_metrics=ctx.obj["PUT_METRICS"],
7575
)
7676
output = "Invalid output format"
7777

@@ -112,7 +112,7 @@ def get_arns(
112112
include_common=include_common,
113113
click=click,
114114
endpoint_url=ctx.obj["AWS_ENDPOINT_URL"],
115-
put_metrics=ctx.obj["PUT_METRICS"]
115+
put_metrics=ctx.obj["PUT_METRICS"],
116116
)
117117
output = "Invalid output format"
118118

@@ -149,7 +149,7 @@ def put_parameters(
149149
region=region,
150150
click=click,
151151
endpoint_url=ctx.obj["AWS_ENDPOINT_URL"],
152-
put_metrics=ctx.obj["PUT_METRICS"]
152+
put_metrics=ctx.obj["PUT_METRICS"],
153153
)
154154

155155
ssm_config.put_values(input, encrypted, delete_first=delete_first)
@@ -169,7 +169,7 @@ def delete_parameters(ctx, environment_name, app_name, ssm_prefix, region):
169169
region=region,
170170
click=click,
171171
endpoint_url=ctx.obj["AWS_ENDPOINT_URL"],
172-
put_metrics=ctx.obj["PUT_METRICS"]
172+
put_metrics=ctx.obj["PUT_METRICS"],
173173
)
174174

175175
ssm_config.delete_existing()
@@ -193,7 +193,6 @@ def put_parameters_recursive(ctx, ssm_prefix, region, delete_first, values_path)
193193
click=click,
194194
values_path=values_path,
195195
endpoint_url=ctx.obj["AWS_ENDPOINT_URL"],
196-
put_metrics=ctx.obj["PUT_METRICS"]
197196
)
198197

199198
ssm_config_manager.put_parameters_recursive(delete_first=delete_first)

src/croudtech_python_aws_app_config/redis_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def get_redis_database(self):
5151
allocated_db = self.allocate_db()
5252
else:
5353
allocated_db = allocated_dbs[self.db_key]
54-
if (self.put_metrics):
54+
if self.put_metrics:
5555
self.metrics.put_redis_db_metric(
5656
app_key=self.db_key,
5757
redis_db=allocated_db,
@@ -66,7 +66,7 @@ def allocate_db(self):
6666
db_config = self.redis_db_allocations
6767
db_config[self.db_key] = db
6868
self._redis_config.set(self._allocated_dbs_key, json.dumps(db_config))
69-
69+
7070
return db
7171

7272
def get_redis_allocated_db(self, db):

src/croudtech_python_aws_app_config/ssm_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def __init__(
5757
include_common=True,
5858
use_sns=True,
5959
endpoint_url=os.getenv("AWS_ENDPOINT_URL", None),
60-
put_metrics=True
60+
put_metrics=True,
6161
):
6262
self.environment_name = environment_name
6363
self.app_name = app_name
@@ -113,7 +113,7 @@ def parse_parameters(self, parameters):
113113
redis_port=redis_port,
114114
app_name=self.app_name,
115115
environment=self.environment_name,
116-
put_metrics=self.put_metrics
116+
put_metrics=self.put_metrics,
117117
)
118118
redis_db = redis_config_instance.get_redis_database()
119119
parameters["/REDIS_DB"] = redis_db

0 commit comments

Comments
 (0)