Skip to content

Conversation

@opopovss
Copy link
Contributor

No description provided.

text = self.__get_footer_text()
return text.split('#')[0].replace('(v', '')

# def get_node_id(self):
Copy link
Collaborator

Choose a reason for hiding this comment

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

pls remove this

elif len(text_split) == 3:
return text_split[2].replace(')', '')
else:
return f"Warning: failed to get the node id from {text}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. Looks like there is extra space after the colon.
  2. Let's change text to f"Warning: failed to get the node information from '{text}'." - this way we could easily catch a case when text is an empty string.

elif len(text_split) == 3:
return text_split[2].replace(')', '')
else:
return f"Warning: failed to get the node id from {text}"
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 change text to f"Warning: failed to get the node information from '{text}'." - this way we could easily catch a case when text is an empty string."

Probably, you should change it here too

opopovss and others added 3 commits November 2, 2021 19:12
…n_server_and_DC' of github.com:atlassian/dc-app-performance-toolkit into dca_1351_Tech_debt_improve_get_node_info_to_work_both_on_server_and_DC
@opopovss opopovss merged commit cedc800 into dev Nov 3, 2021
@opopovss opopovss deleted the dca_1351_Tech_debt_improve_get_node_info_to_work_both_on_server_and_DC branch November 3, 2021 05:30
AbhinavPlugins pushed a commit to AbhinavPlugins/dc-app-performance-toolkit that referenced this pull request Mar 1, 2025
…prove_get_node_info_to_work_both_on_server_and_DC

Tech debt: improve get node info to work both on server and DC
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.

4 participants