diff --git a/dcmgr/lib/dcmgr/endpoints/12.03/instances.rb b/dcmgr/lib/dcmgr/endpoints/12.03/instances.rb index 58779f8c0..726e7d2c3 100644 --- a/dcmgr/lib/dcmgr/endpoints/12.03/instances.rb +++ b/dcmgr/lib/dcmgr/endpoints/12.03/instances.rb @@ -187,7 +187,7 @@ def set_monitoring_parameters(instance) get '/:instance_id/password' do @instance = find_by_uuid(:Instance, params[:instance_id]) theresponse = R::InstancePassword.new(@instance).generate - + if Dcmgr::Configurations.dcmgr.windows.delete_password_on_request logger.info "Deleting encrypted_password for #{:instance_id}" @instance.set({ :encrypted_password => nil }).save_changes diff --git a/dcmgr/lib/dcmgr/node_modules/maintenance.rb b/dcmgr/lib/dcmgr/node_modules/maintenance.rb index 6f170fb9d..3e1d3139b 100644 --- a/dcmgr/lib/dcmgr/node_modules/maintenance.rb +++ b/dcmgr/lib/dcmgr/node_modules/maintenance.rb @@ -42,7 +42,7 @@ def automatic_windows_password_deletion handle.set({ :encrypted_password => nil, :password_will_be_deleted_at => nil }).save_changes } end - + end end