-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flux-account: get rid of dictionary initialization
Problem: flux-account.py manually creates the dictionary of arguments that is sent via RPC to the flux-accounting service, but since the service already unpacks these arguments, flux-account.py can just create a dictionary of the arguments using vars() and send the entire dictionary. Use vars() on the parsed args to create a dictionary before sending the RPC to the appropriate flux-accounting command. Move the .split() call of the "fields" optional argument to the flux-accounting service instead of in flux-account.py.
- Loading branch information
Showing
2 changed files
with
39 additions
and
181 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