Remove Contract on customUserData
A common paradigm with userdata is to supply: userdata: str_replace: template: | <some script> 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
This commit is contained in:
parent
8e913882cd
commit
1c1144692c
@ -7,13 +7,11 @@ Name: LinuxUDInstance
|
|||||||
Extends:
|
Extends:
|
||||||
- LinuxInstance
|
- LinuxInstance
|
||||||
|
|
||||||
Properties:
|
|
||||||
customUserData:
|
|
||||||
Contract: $.string()
|
|
||||||
Usage: InOut
|
|
||||||
Default: null
|
|
||||||
|
|
||||||
Methods:
|
Methods:
|
||||||
|
initialize:
|
||||||
|
Body:
|
||||||
|
- $.customUserData: null
|
||||||
|
|
||||||
prepareUserData:
|
prepareUserData:
|
||||||
Body:
|
Body:
|
||||||
- Return:
|
- Return:
|
||||||
@ -23,6 +21,6 @@ Methods:
|
|||||||
setCustomUserData:
|
setCustomUserData:
|
||||||
Arguments:
|
Arguments:
|
||||||
- data:
|
- data:
|
||||||
Contract: $.string().notNull()
|
Contract: $.notNull()
|
||||||
Body:
|
Body:
|
||||||
- $.customUserData: $data
|
- $.customUserData: $data
|
||||||
|
Loading…
Reference in New Issue
Block a user