Skip to content

Conversation

@danijelaconc
Copy link
Contributor

Adding a common.py file with function that is common to all files. Removing shell=True from files. Adding quotations. All code was run and is working.

Copy link
Collaborator

@ericvaandering ericvaandering left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And squash this next commit in with the previous two (so after your merge of main into your code).


def produce_prom_metric(metric_name, metric_value, list_input, labels):
# loop over labels to get key,value pairs
# print(len(labels))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's get rid of all these old print statements.

print('}', end='')
print(f' {metric_value}')
extract_labels = ['vo', 'tapepool', 'vid', 'status']

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove one of the blank lines

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or all of them. You decide the style, but multiple blank lines is reserved for separating one function/class from another.


cta_admin_output_json = json.loads(cta_admin_output)


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Take this one out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants