lib/chef/knife/ionoscloud_label_add.rb in knife-ionoscloud-5.1.2 vs lib/chef/knife/ionoscloud_label_add.rb in knife-ionoscloud-6.0.0.alpha.1
- old
+ new
@@ -40,13 +40,12 @@
@required_options = [:type, :resource_id, :key, :value, :ionoscloud_username, :ionoscloud_password]
end
def run
$stdout.sync = true
- handle_extra_config
validate_required_params(@required_options, config)
- label_api = Ionoscloud::LabelApi.new(api_client)
+ label_api = Ionoscloud::LabelsApi.new(api_client)
label_properties = {
properties: {
key: config[:key],
value: config[:value],