d786a523d6bae7e32f2c3ba8af6e8cad1d63ab82
[packages/precise/mcollective.git] / website / messages / PLMC22.md
1 ---
2 layout: default
3 title: Message detail for PLMC22
4 toc: false
5 ---
6
7 Detail for Marionette Collective message PLMC22
8 ===========================================
9
10 Example Message
11 ---------------
12
13     Cannot determine what entity input 'port' belongs to
14
15 Additional Information
16 ----------------------
17
18 When writing a DDL you declare inputs into plugins using the input keyword.  Each input has to belong to a wrapping entity like in the example below:
19
20     action "get_data", :description => "Get data from a data plugin" do
21         input :source,
22               :prompt      => "Data Source",
23               :description => "The data plugin to retrieve information from",
24               :type        => :string,
25               :validation  => '^\w+$',
26               :optional    => false,
27               :maxlength   => 50
28     end
29
30 Here the input belongs to the action entity "get_data", this error indicates that an input were found without it belonging to any specific entity