-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: PEP8 compliance update private method
- Loading branch information
1 parent
902fd2a
commit 8d260b3
Showing
6 changed files
with
33 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from pvecontrol.utils import _print_task, _print_tableoutput, _filter_keys | ||
from pvecontrol.utils import print_task, print_tableoutput, filter_keys | ||
|
||
|
||
def action_tasklist(proxmox, args): | ||
tasks = [ _filter_keys(t.__dict__, ['upid', 'exitstatus', 'node', 'type', 'starttime', 'endtime', 'runningstatus', 'description']) for t in proxmox.tasks ] | ||
_print_tableoutput(tasks, sortby='starttime') | ||
tasks = [ filter_keys(t.__dict__, ['upid', 'exitstatus', 'node', 'type', 'starttime', 'endtime', 'runningstatus', 'description']) for t in proxmox.tasks ] | ||
print_tableoutput(tasks, sortby='starttime') | ||
|
||
def action_taskget(proxmox, args): | ||
_print_task(proxmox, args.upid, args.follow) | ||
print_task(proxmox, args.upid, args.follow) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
from pvecontrol.utils import _filter_keys | ||
from pvecontrol.utils import filter_keys | ||
|
||
def test_filter_keys(): | ||
def testfilter_keys(): | ||
input = {'test': "toto", 'none': "noninclude"} | ||
filter = ["test"] | ||
assert _filter_keys(input, filter) == {'test': "toto"} | ||
assert filter_keys(input, filter) == {'test': "toto"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters