manageiq-smartstate 0.2.19 → 0.2.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/manageiq/smartstate/version.rb +1 -1
- data/lib/metadata/VmConfig/VmConfig.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a9ce7c12773f81f38d88e8dd804c3fec7715689
|
4
|
+
data.tar.gz: c284fbf22936e11c4b26d15d0ce477d72fdbfa09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 104e7c8e2cfe9fac79a837135aa211a1b2247c4ac98ee96ced42e73124b933d9c5eed439827a525f1d43cc7007b373218be2860630c84d5b73ce046337c6bdb4
|
7
|
+
data.tar.gz: fbcc337d8fed7a530f08166ecea22a369aa5d316cb3d6af0b52ffffa2a2ea25988afa3ebf2bfd8f8b00bb22aace4d5136fd2e3a3d972d6f1c417ae6ca0819ef7
|
@@ -390,7 +390,10 @@ class VmConfig
|
|
390
390
|
creds = $miqHostCfg.ems[$miqHostCfg.emsLocal]
|
391
391
|
elsif $miqHostCfg.vimHost
|
392
392
|
c = $miqHostCfg.vimHost
|
393
|
-
|
393
|
+
if c[:username].nil?
|
394
|
+
$log.warn "Host credentials are missing: skipping snapshot information."
|
395
|
+
return nil
|
396
|
+
end
|
394
397
|
creds = {'host' => (c[:hostname] || c[:ipaddress]), 'user' => c[:username], 'password' => c[:password], 'use_vim_broker' => c[:use_vim_broker]}
|
395
398
|
end
|
396
399
|
end
|
@@ -611,7 +614,12 @@ class VmConfig
|
|
611
614
|
hostVim = nil
|
612
615
|
if miqvm.vim.isVirtualCenter?
|
613
616
|
hostVim = connect_to_host_vim('snapshot_metadata', miqvm.vmConfigFile)
|
614
|
-
|
617
|
+
|
618
|
+
if hostVim.nil?
|
619
|
+
$log.warn "Snapshots information will be skipped due to EMS host missing credentials."
|
620
|
+
return
|
621
|
+
end
|
622
|
+
|
615
623
|
vimDs = hostVim.getVimDataStore(ds)
|
616
624
|
else
|
617
625
|
vimDs = miqvm.vim.getVimDataStore(ds)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-smartstate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-01-
|
11
|
+
date: 2019-01-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: azure-armrest
|