Fix wrong syntax for parameters

Liberty allows describe parameters as the yaml-dictionary,
but it is not allowed in Mitaka

Change-Id: I5f6980bd9b13193ddc238934f004db418014fa5a
This commit is contained in:
Alexey Khivin 2016-06-15 14:08:46 +03:00
parent f1b5781237
commit c55d6d3dad

View File

@ -15,21 +15,19 @@ Properties:
Usage: InOut
Methods:
.init:
Body:
- $this.hosts: dict()
#
# Add new entry to be put into /etc/hosts
#
addHost:
Arguments:
hostname:
Contract: $.string().notNull()
ip:
Contract: $.string().notNull()
aliases:
Contract: [$.string()]
Default: []
- hostname:
Contract: $.string().notNull()
- ip:
Contract: $.string().notNull()
- aliases:
Contract:
- $.string()
Default: list()
Body:
- $this.hosts[$hostname]:
name: $hostname
@ -41,11 +39,12 @@ Methods:
#
addHostByInstance:
Arguments:
instance:
Contract: $.class(res:LinuxMuranoInstance).notNull()
aliases:
Contract: [$.string()]
Default: []
- instance:
Contract: $.class(res:LinuxMuranoInstance).notNull()
- aliases:
Contract:
- $.string()
Default: list()
Body:
- $hostname: $this.getHostName($instance, true)
- $shortname: $this.getHostName($instance, false)
@ -58,11 +57,11 @@ Methods:
#
getHostName:
Arguments:
instance:
Contract: $.class(res:LinuxMuranoInstance).notNull()
fqdn:
Contract: $.bool().notNull()
Default: false
- instance:
Contract: $.class(res:LinuxMuranoInstance).notNull()
- fqdn:
Contract: $.bool().notNull()
Default: false
Body:
- $linux: new(conf:Linux)
@ -78,8 +77,8 @@ Methods:
#
applyTo:
Arguments:
instance:
Contract: $.class(puppet:PuppetInstance)
- instance:
Contract: $.class(puppet:PuppetInstance)
Body:
- $data:
hosts: $this.hosts