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

op-mode: T6537: remove unused cmd imported from vyos.utils.process (backport #3791) #3798

Merged
merged 1 commit into from
Jul 7, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 6, 2024

Change Summary

Commit dc60fe9 ("op-mode: T6537: include hostname in the reboot/shutdown warning message") added a more local import of vyos.utils.process.cmd() that made the fglobal import obsolete and trigger a linter warning.

$ make unused-imports

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Related PR(s)

Component(s) name

powerctl

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

This is an automatic backport of pull request #3791 done by [Mergify](https://mergify.com).

Commit dc60fe9 ("op-mode: T6537: include hostname in the reboot/shutdown
warning message") added a more local import of vyos.utils.process.cmd() that
made the fglobal import obsolete and trigger a linter warning.

$ make unused-imports

--------------------------------------------------------------------
Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

(cherry picked from commit 6b2e45c)
@github-actions github-actions bot added the sagitta VyOS 1.4 LTS label Jul 6, 2024
Copy link

github-actions bot commented Jul 6, 2024

👍
No issues in PR Title / Commit Title

Copy link

github-actions bot commented Jul 6, 2024


warning: Unused cmd imported from vyos.utils.process in src/op_mode/powerctrl.py:27.

@c-po c-po enabled auto-merge July 6, 2024 05:31
@c-po c-po merged commit 14d951f into sagitta Jul 7, 2024
7 of 8 checks passed
@mergify mergify bot deleted the mergify/bp/sagitta/pr-3791 branch July 7, 2024 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sagitta VyOS 1.4 LTS
Development

Successfully merging this pull request may close these issues.

3 participants