From b1b024061292165030e999afb517edeb0ddddc19 Mon Sep 17 00:00:00 2001 From: James Adams Date: Mon, 11 Apr 2016 13:43:07 +0100 Subject: [PATCH] Add new template for legacy types Types in here should be collected to be phased out of use. The first is the infamous non-boolean yesnostring used by several component with different names. --- pan/legacy.pan | 3 +++ pan/types.pan | 1 + 2 files changed, 4 insertions(+) create mode 100644 pan/legacy.pan diff --git a/pan/legacy.pan b/pan/legacy.pan new file mode 100644 index 000000000..b3162dfd8 --- /dev/null +++ b/pan/legacy.pan @@ -0,0 +1,3 @@ +declaration template quattor/types/legacy; + +type legacy_binary_affirmation_string = string with match(SELF, "^(yes|no)$"); diff --git a/pan/types.pan b/pan/types.pan index 68158a217..1ba6076c0 100644 --- a/pan/types.pan +++ b/pan/types.pan @@ -31,6 +31,7 @@ Data type and function definitions for the following basic types: declaration template pan/types; +include 'pan/legacy'; @documentation{ This type implements a date/time format consistent with