-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It's better not to use the global flag variables beyond the top-level RunE functions, because sometimes the lower-level functions are re-used from other files within the 'cmd' package. In this case, createContainer(), and hence pullImage(), is also used in src/cmd/run.go to implement the 'run' command. However, the 'run' command doesn't have a --authflags option. Since the default value of the flag is the zero value of the type, which is a NOP in the code, it's likely that the code was still correct, but it will be better to maintain some discipline here to highlight the inputs needed by the lower-level functions. Otherwise, things can get tangled up. Fallout from ecd1ced #1240
- Loading branch information
1 parent
48c07b8
commit 8af015e
Showing
2 changed files
with
8 additions
and
8 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