Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing an incorrect error message #318

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

ItsNim
Copy link

@ItsNim ItsNim commented Jun 30, 2023

This error message neglects the fact that it could be the major version number that is the problem

Copy link
Collaborator

@mzagozen mzagozen left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution @ItsNim! Please rebase your changes on top of the current master so that we can run CI.

Comment on lines +361 to +365
self.logger.error("More than {} ({} configured) NICs or a major version greater than {} ({} detected)".format(max_non_licensed_nics,
num_nics,
min_non_licensed_major_release,
major_release) +\
" require distributed VSR which requires a license but no license is found")
Copy link
Collaborator

Choose a reason for hiding this comment

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

The recent base image change also upgraded Python to 3.9.2 so we can use f-strings:

Suggested change
self.logger.error("More than {} ({} configured) NICs or a major version greater than {} ({} detected)".format(max_non_licensed_nics,
num_nics,
min_non_licensed_major_release,
major_release) +\
" require distributed VSR which requires a license but no license is found")
self.logger.error(f"More than {max_non_licensed_nics} ({num_nics} configured) NICs or a major version greater than {min_non_licensed_major_release} ({major_release} detected) require distributed VSR which requires a license, but no license is found")

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.

None yet

2 participants