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:
Steve McLellan 2014-09-09 11:55:19 -05:00
parent 8e913882cd
commit 1c1144692c

View File

@ -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