lib/fog/vsphere/requests/compute/vm_config_vnc.rb
def vm_get_vnc(uuid)
          search_filter = { :uuid => uuid, 'vmSearch' => true, 'instanceUuid' => true }
          vm = connection.searchIndex.FindAllByUuid(search_filter).first
          Hash[vm.config.extraConfig.map do |config|
            if config.key =~ /^RemoteDisplay\.vnc\.(\w+)$/
              [Regexp.last_match(1).to_sym, config.value]
            end
          end.compact]
        end
# return a hash of VNC attributes required to view the console
return a hash of VNC attributes required to view the console
return a hash of VNC attributes required to view the console
def vm_get_vnc(uuid)
          search_filter = { :uuid => uuid, 'vmSearch' => true, 'instanceUuid' => true }
          vm = connection.searchIndex.FindAllByUuid(search_filter).first
          Hash[vm.config.extraConfig.map do |config|
            if config.key =~ /^RemoteDisplay\.vnc\.(\w+)$/
              [Regexp.last_match(1).to_sym, config.value]
            end
          end.compact]
        end
def vm_get_vnc ( uuid ) search_filter = { :uuid => uuid , 'vmSearch' => true , 'instanceUuid' => true } vm = connection . searchIndex . FindAllByUuid ( search_filter ) . first Hash [ vm . config . extraConfig . map do | config | if config . key =~ / ^RemoteDisplay \. vnc \. ( \w +)$ / [ Regexp . last_match ( 1 ) . to_sym , config . value ] end end . compact ] end
return a hash of VNC attributes required to view the console
return a hash of VNC attributes required to view the console
uuid