Skip to content

Commit bf5aae9

Browse files
Iakov Gandarken99
authored andcommitted
rename trace to track
1 parent 7d8e4b8 commit bf5aae9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cid/common.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def __setupLogging(self, verbosity: int=0, log_filename: str='cid.log') -> None:
181181
print(f'Logging level set to: {logging.getLevelName(logger.getEffectiveLevel())}')
182182

183183

184-
def trace(self, action, dashboard_id):
184+
def track(self, action, dashboard_id):
185185
""" Send dashboard_id and account_id to adoption tracker """
186186
method = {'created':'PUT', 'updated':'PATCH', 'deleted': 'DELETE'}.get(action, None)
187187
if not method:
@@ -277,7 +277,7 @@ def deploy(self, **kwargs):
277277
click.echo('completed')
278278
click.echo(
279279
f"#######\n####### Congratulations!\n####### {dashboard_definition.get('name')} is available at: {_url}\n#######")
280-
self.trace('created', dashboard_definition.get('dashboardId'))
280+
self.track('created', dashboard_definition.get('dashboardId'))
281281
except self.qs.client.exceptions.ResourceExistsException:
282282
click.echo('error, already exists')
283283
click.echo(
@@ -359,7 +359,7 @@ def delete(self, dashboard_id, **kwargs):
359359
click.echo('Deleting dashboard...', nl=False)
360360
self.qs.delete_dashboard(dashboard_id=dashboard_id)
361361
print('deleted')
362-
self.trace('deleted', dashboard_id)
362+
self.track('deleted', dashboard_id)
363363
return dashboard_id
364364
except self.qs.client.exceptions.ResourceNotFoundException:
365365
print('not found')
@@ -438,7 +438,7 @@ def update(self, dashboard_id, **kwargs):
438438
self.qs.update_dashboard(dashboard, **kwargs)
439439
click.echo('completed')
440440
dashboard.display_url(self.qs_url, launch=True, **self.qs_url_params)
441-
self.trace('updated', dashboard_id)
441+
self.track('updated', dashboard_id)
442442
except Exception as e:
443443
# Catch exception and dump a reason
444444
click.echo('failed, dumping error message')

0 commit comments

Comments
 (0)