Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.