-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ServiceManager: fix variables override
Given the following configuration: variables: foo: bar services: simple: desc: Simplest service declaration actions: status: cmd: echo %foo We have this behaviour: $ milkcheck -c ~/devel/milkcheck-cedeyn/conf/test_variables status --var 'foo=bar' -d [14:36:42] WARNING - Configuration file /etc/milkcheck/milkcheck.conf not found [14:36:42] DEBUG - Configuration assumeyes: False config_dir: /ccc/home/cont001/ocre/cedeyna/devel/milkcheck-cedeyn/conf/test_variables confirm_actions: [] defines: ['foo=bar'] dryrun: False fanout: 64 nodeps: False report: no reverse_actions: ['stop'] summary: False tags: set([]) verbosity: 5 [14:36:42] ERROR - We hit the VariableAlreadyDefined exception. Re-ordering and updating variables fixes this bug. Also add test to check if milkcheck correctly override variables given on its commandline. Change-Id: I80ca2be6b85bd9fc2de89c00e40054956f529e4b
- Loading branch information
Showing
3 changed files
with
42 additions
and
5 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