From 1c1144692ca89ed49a5df2cbac258fe4ed167d77 Mon Sep 17 00:00:00 2001 From: Steve McLellan Date: Tue, 9 Sep 2014 11:55:19 -0500 Subject: [PATCH] Remove Contract on customUserData A common paradigm with userdata is to supply: userdata: str_replace: template: | params: param1: value1 With the contract on customUserData being a string, passing str_replace as the argument results in coercion to a string, which makes it invalid. Change-Id: I8bcf788522fc2428eaa3c8529ee11b5ed385099b --- .../io.murano/Classes/resources/LinuxUDInstance.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/meta/io.murano/Classes/resources/LinuxUDInstance.yaml b/meta/io.murano/Classes/resources/LinuxUDInstance.yaml index 43ced7bc..a599d766 100644 --- a/meta/io.murano/Classes/resources/LinuxUDInstance.yaml +++ b/meta/io.murano/Classes/resources/LinuxUDInstance.yaml @@ -7,13 +7,11 @@ Name: LinuxUDInstance Extends: - LinuxInstance -Properties: - customUserData: - Contract: $.string() - Usage: InOut - Default: null - Methods: + initialize: + Body: + - $.customUserData: null + prepareUserData: Body: - Return: @@ -23,6 +21,6 @@ Methods: setCustomUserData: Arguments: - data: - Contract: $.string().notNull() + Contract: $.notNull() Body: - $.customUserData: $data