From b21c7c02326ddd87b9454617392c1ddaec002342 Mon Sep 17 00:00:00 2001 From: Brian Coca Date: Thu, 5 Jul 2018 11:40:17 -0400 Subject: [PATCH] create default status for when not provided * also updated text to be 'plugin friendly' vs hardcoding modules (cherry picked from commit 341a0f7b035588557d35fc12164a0f4031c786fe) --- docs/templates/plugin.rst.j2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/templates/plugin.rst.j2 b/docs/templates/plugin.rst.j2 index 79300594f2..abf73a83ca 100644 --- a/docs/templates/plugin.rst.j2 +++ b/docs/templates/plugin.rst.j2 @@ -391,7 +391,7 @@ Status {% if metadata.status %} {% for cur_state in metadata.status %} -This module is flagged as **@{cur_state}@** which means that @{module_states[cur_state]}@. +This @{ plugin_type }@ is flagged as **@{cur_state}@** which means that @{module_states[cur_state]}@. {% endfor %} {% endif %} @@ -402,13 +402,15 @@ Support ~~~~~~~ For more information about Red Hat's support of this @{ plugin_type }@, please refer to this `Knowledge Base article `_ - +{% else %} +This @{ plugin_type }@ is flagged as **preview** which means that @{module_states['preview']}@. {% endif %} + {% endif %} {% else %} -This module is flagged as **deprecated** and will be removed in version @{ deprecated['removed_in'] | default('') | string | convert_symbols_to_format }@. For more information see `DEPRECATED`_. +This @{ plugin_type }@ is flagged as **deprecated** and will be removed in version @{ deprecated['removed_in'] | default('') | string | convert_symbols_to_format }@. For more information see `DEPRECATED`_. {% endif %}