From 900c10a0d34bae4dbc50685c3cc42b7e7b45341b Mon Sep 17 00:00:00 2001 From: "C.J. Collier" Date: Thu, 9 Jan 2025 13:56:26 -0800 Subject: [PATCH] * include version in template disclaimer * include version in action generator --- templates/common/template_disclaimer | 9 ++++++--- templates/generate-action.pl | 3 +++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/common/template_disclaimer b/templates/common/template_disclaimer index 3b417deff..1c2d22b04 100644 --- a/templates/common/template_disclaimer +++ b/templates/common/template_disclaimer @@ -1,5 +1,8 @@ +# +# Google Cloud Dataproc Initialization Actions v[% IA_VERSION %] +# # This initialization action is generated from -# initialization-actions/templates/[% template_path %] +# initialization-actions/templates/[% template_path %].in # -# Modifications made directly to the generated file will be lost when -# the template is re-evaluated +# Modifications made directly to generated files will be lost when the +# templates are next evaluated. diff --git a/templates/generate-action.pl b/templates/generate-action.pl index 690acb409..2e1d344ff 100644 --- a/templates/generate-action.pl +++ b/templates/generate-action.pl @@ -7,6 +7,9 @@ use Template; use strict; +# Version of Initialization Actions we will generate +my $IA_VERSION="0.0.1"; + my $action = $ARGV[0]; my $v = { template_path => "${action}",