add-parameter-messages-47d9cf6996f58230.yaml 1018 B

12345678910111213141516171819202122232425
  1. ---
  2. features:
  3. - |
  4. Packstack can display parameter specific messages when a MESSAGE option
  5. is added to the parameter. If MESSAGE_VALUES exist for the parameter, the
  6. message will only be shown if the value provided by the user is included
  7. in MESSAGE_VALUES. Example:
  8. {"CMD_OPTION": "example-service-install",
  9. "OPTION_LIST": ["y", "n"],
  10. "VALIDATORS": [validators.validate_options],
  11. "DEFAULT_VALUE": 'n',
  12. "MASK_INPUT": False,
  13. "LOOSE_VALIDATION": False,
  14. "CONF_NAME": "CONFIG_EXAMPLE_SERVICE_INSTALL",
  15. "USE_DEFAULT": False,
  16. "NEED_CONFIRM": False,
  17. "CONDITION": False,
  18. "MESSAGE_VALUES": ["y"],
  19. "MESSAGE": "Example service installation will be removed from packstack in Pike"}
  20. In this case, if the user enable installation of example service, a message
  21. will be displayed at the end of packstack execution with content "Example
  22. service installation will be removed from packstack in Pike"