fix: allow muting deprecation warning via. pillar/config entry
This commit is contained in:
parent
e97eeae766
commit
8e7471e837
@ -1,6 +1,8 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# vim: ft=sls
|
# vim: ft=sls
|
||||||
|
|
||||||
|
{#- Evaluating as `False` by default, using this method since `defaults.yaml` not available in this repo #}
|
||||||
|
{%- if not salt['config.get']('php').get('warning_messages', {}).get('v1.0.0', {}).get('mute_critical', False) %}
|
||||||
php-deprecated-in-v1.0.0-test-succeed:
|
php-deprecated-in-v1.0.0-test-succeed:
|
||||||
test.succeed_without_changes:
|
test.succeed_without_changes:
|
||||||
- name: |
|
- name: |
|
||||||
@ -25,5 +27,15 @@ php-deprecated-in-v1.0.0-test-succeed:
|
|||||||
# To migrate from the old `php`, the first step is to convert to `php.ng`, #
|
# To migrate from the old `php`, the first step is to convert to `php.ng`, #
|
||||||
# before `v1.0.0` is released. #
|
# before `v1.0.0` is released. #
|
||||||
# #
|
# #
|
||||||
|
# To prevent this message being displayed again, set the pillar/config value: #
|
||||||
|
# #
|
||||||
|
# ``` #
|
||||||
|
# php: #
|
||||||
|
# warning_messages: #
|
||||||
|
# v1.0.0: #
|
||||||
|
# mute_critical: True #
|
||||||
|
# ``` #
|
||||||
|
# #
|
||||||
################################################################################
|
################################################################################
|
||||||
# - failhard: True
|
# - failhard: True
|
||||||
|
{%- endif %}
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
## php.ng pillar examples
|
## php.ng pillar examples
|
||||||
|
|
||||||
php:
|
php:
|
||||||
|
# Use the following values to mute deprecation warnings
|
||||||
|
warning_messages: #
|
||||||
|
v1.0.0: #
|
||||||
|
mute_critical: True #
|
||||||
# Use external repository instead the default (only Ubuntu family)
|
# Use external repository instead the default (only Ubuntu family)
|
||||||
use_external_repo: True
|
use_external_repo: True
|
||||||
# Set the external repository name (valid only if use_external_repo is not none)
|
# Set the external repository name (valid only if use_external_repo is not none)
|
||||||
|
Loading…
Reference in New Issue
Block a user