diff --git a/src/datastore_mad/remotes/vcenter/cp b/src/datastore_mad/remotes/vcenter/cp index d1b32262b2..fe6444f851 100755 --- a/src/datastore_mad/remotes/vcenter/cp +++ b/src/datastore_mad/remotes/vcenter/cp @@ -110,8 +110,7 @@ end def find_image_type(target_file) target_file_type=nil - Open3.popen3("qemu-img info #{target_file}") do - |_stdin, stdout, stderr, wait_thr| + Open3.popen3("qemu-img info #{target_file}") do |_stdin, stdout, stderr, wait_thr| unless wait_thr.value.success? raise StandardError, "'qemu-img info' failed, stderr: #{stderr.read}" diff --git a/src/oca/ruby/opennebula/flow/service_template.rb b/src/oca/ruby/opennebula/flow/service_template.rb index 6048eae41f..8adf6015c3 100644 --- a/src/oca/ruby/opennebula/flow/service_template.rb +++ b/src/oca/ruby/opennebula/flow/service_template.rb @@ -549,8 +549,7 @@ module OpenNebula end if role['elasticity_policies'] - role['elasticity_policies'].each_with_index do |policy, - index| + role['elasticity_policies'].each_with_index do |policy, index| exp = policy['expression'] if exp.empty? diff --git a/src/oca/ruby/opennebula/template_ext.rb b/src/oca/ruby/opennebula/template_ext.rb index 4b785cefff..cbea49f507 100644 --- a/src/oca/ruby/opennebula/template_ext.rb +++ b/src/oca/ruby/opennebula/template_ext.rb @@ -63,9 +63,7 @@ module OpenNebula::TemplateExt #--------------------------------------------------------------- logger.info 'Processing VM disks' if logger - retrieve_xmlelements('TEMPLATE/DISK').each_with_index do - |disk, idx| - + retrieve_xmlelements('TEMPLATE/DISK').each_with_index do |disk, idx| image = image_lookup(disk) next unless image