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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 497ad568d7d383c0c741d53c576a237199683a75
4
- data.tar.gz: 007c295b7a61bc8dc23be2070479b4499df130d1
3
+ metadata.gz: 2a9ce7c12773f81f38d88e8dd804c3fec7715689
4
+ data.tar.gz: c284fbf22936e11c4b26d15d0ce477d72fdbfa09
5
5
  SHA512:
6
- metadata.gz: 733ef557955bbfa9f13fa1915ad04ad170d355304fe3e7ecfd48fe2dc50900358ae09b2b447b2007af738b95fff00fea264be03a9fb1e4eadecf680f56274df4
7
- data.tar.gz: afca04f7eb0f4dade8483d35add5582dfc5eb28f2e0369ff80b54c2661d4b6ba6914bb1dc6a917c773a04e43114841c545635b56e05920856d0ae601256afd00
6
+ metadata.gz: 104e7c8e2cfe9fac79a837135aa211a1b2247c4ac98ee96ced42e73124b933d9c5eed439827a525f1d43cc7007b373218be2860630c84d5b73ce046337c6bdb4
7
+ data.tar.gz: fbcc337d8fed7a530f08166ecea22a369aa5d316cb3d6af0b52ffffa2a2ea25988afa3ebf2bfd8f8b00bb22aace4d5136fd2e3a3d972d6f1c417ae6ca0819ef7
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.2.19".freeze
3
+ VERSION = "0.2.20".freeze
4
4
  end
5
5
  end
@@ -390,7 +390,10 @@ class VmConfig
390
390
  creds = $miqHostCfg.ems[$miqHostCfg.emsLocal]
391
391
  elsif $miqHostCfg.vimHost
392
392
  c = $miqHostCfg.vimHost
393
- return nil if c[:username].nil?
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
- return if hostVim.nil?
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.19
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-25 00:00:00.000000000 Z
11
+ date: 2019-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest