This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/.bashrc | |
alias miq='cd /var/www/miq/vmdb; bin/rails c' | |
/var/www/miq/vmdb/.irbrc | |
evm = MiqAeMethodService::MiqAeService.new(MiqAeEngine::MiqAeWorkspaceRuntime.new) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vm_fqdn = "#{vm_name}#{hostname_suffix}" | |
begin | |
Resolv::DNS.new.getaddress(vm_fqdn) | |
rescue Resolv::ResolvError | |
#If we get a ResolvError, that means that the VM FQDN cannot be found | |
#That indicates that the VM name that we have calculated does not exist in DNS already | |
#return VM name here | |
rescue => err | |
$evm.log(:warn, "Error querying DNS for VM name:|#{err}") | |
end |