Skip to content

Commit 61078ff

Browse files
committed
adding the option: isdynamicallyscalable to register template
1 parent 872fd0f commit 61078ff

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

lib/chef/knife/cs_template_register.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ class CsTemplateRegister < Chef::Knife
7373
:boolean => true,
7474
:default => false
7575

76+
option :isdynamicallyscalable,
77+
:long => "--isdynamicallyscalable",
78+
:description => "Is the template dynamically scalable. Default: NO",
79+
:boolean => true,
80+
:default => false
81+
7682
option :featured,
7783
:long => "--[no-]featured",
7884
:description => "Is the tempalte featured? Default: NO",
@@ -159,6 +165,7 @@ def run
159165
'zoneid' => zoneid,
160166
'bits' => locate_config_value(:bits),
161167
}
168+
params['isdynamicallyscalable'] = locate_config_value(:isdynamicallyscalable) if locate_config_value(:isdynamicallyscalable)
162169
params['isextractable'] = locate_config_value(:isextractable) if locate_config_value(:isextractable)
163170
params['ispublic'] = locate_config_value(:public) if locate_config_value(:public)
164171
params['isfeatured'] = locate_config_value(:featured) if locate_config_value(:featured)

0 commit comments

Comments
 (0)