Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Requirement: add admin_user/admin_password conf file
Description: Customer require a way to read admin/admin password from given path/file --admin-user and --admin-password command is not secret since it would be displayed.The expected change to contrail-logs, contrail-stats, contrail-flow. Solution: Add a new command --admin-conf-file and follow these rules: (1) giving the highest priority to --admin/--admin-password only when they are specified in the command line. (2) if --admin/--admin-password are not specified and --conf-file is specified, read the file specified by --conf-file. (3) if any of --admin/--admin-password/--conf-file are not specified, read the default conf file. (4) if any options are not specified and the credential cannot be read from the default conf file, use default user and password. Closes-Bug: 1658821 Change-Id: If9d7c2640fafd085395e950e69825eaedeb49347
- Loading branch information
1 parent
5390a8c
commit 803d6f8
Showing
3 changed files
with
110 additions
and
20 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