-
Notifications
You must be signed in to change notification settings - Fork 67
Refactor the code according to flake8 errors #1205
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
Conversation
Signed-off-by: Anat Wax <awax@redhat.com>
|
The following are automatically added:
Available user actions:
Supported labels
|
|
Kudos, SonarCloud Quality Gate passed! |
Tox check passed�[K �[K |
|
/verified |
|
/cherry-pick v4.13 |
Signed-off-by: Anat Wax <awax@redhat.com>
|
Cherry-picked PR Refactor the code according to flake8 errors into v4.13 |
Signed-off-by: Anat Wax <awax@redhat.com>
Signed-off-by: Anat Wax <awax@redhat.com>








Short description:
More details:
flake8...................................................................Failed
ocp_resources/node.py:16:16: C419 Unnecessary list comprehension passed to any() prevents short-circuiting - rewrite as a generator.
ocp_resources/virtual_machine_restore.py:72:26: SIM910 Use 'self.instance.get('status', {}).get("complete")' instead of 'self.instance.get('status', {}).get('complete', None)'
ocp_resources/virtual_machine_snapshot.py:69:26: SIM910 Use 'self.instance.get('status', {}).get("readyToUse")' instead of 'self.instance.get('status', {}).get('readyToUse', None)'
What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug: