manageiq-smartstate 0.2.15 → 0.2.16

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: 4ec94bdbd4d33105e0c1f05d411ad4455dc49318
4
- data.tar.gz: a02ad229203f98d7cf0c52a01fdc4827ceb444ca
3
+ metadata.gz: b8ffe0ea7f752ee9698daddf1ebb4f78233e57f6
4
+ data.tar.gz: 516997461f598bc97ef96df4df1ade730edce39d
5
5
  SHA512:
6
- metadata.gz: 412fb444df349b110a1d313ae88fa3862c136c6550e758533e34d6eb4bffa40393fa7346e64e31e3671b8ec53a54898a96f762740a338bc151c3f8fd5e62c8a1
7
- data.tar.gz: ace0c8bd5f756282c00906260e4e6954b742c9a19710c6ab89e9e5bc24069afc3a7cd1761601b270458ea0e7bab094382c0b36226403af3c005598601b62736c
6
+ metadata.gz: 0e8c0e84ba2b336b6081d87dbbcf432f0deb831f4467d366aa4461fa9d1449255a175bd0a32e19446ef80ec5d570926adf8f1a43fbccdde849a7c8530d6cddae
7
+ data.tar.gz: cfe139450f783f6a4ced52ed9262e1c15d660ec4671ecea3cd9f2859a3a4ebd000fa3cc1226208d064395ca1c72522e0ea13381420c84cd363055acf9346d99a
data/Gemfile CHANGED
@@ -4,7 +4,6 @@ source 'https://rubygems.org'
4
4
  gemspec
5
5
 
6
6
  gem "manageiq-gems-pending", :git => "https://github.com/ManageIQ/manageiq-gems-pending.git", :branch => "master"
7
- gem "manageiq-password", :git => "https://github.com/ManageIQ/manageiq-password.git", :branch => "master"
8
7
 
9
8
  # Modified gems for vmware_web_service. Setting sources here since they are git references
10
9
  gem "handsoap", "~>0.2.5", :require => false, :git => "https://github.com/ManageIQ/handsoap.git", :tag => "v0.2.5-5"
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.2.15".freeze
3
+ VERSION = "0.2.16".freeze
4
4
  end
5
5
  end
@@ -36,12 +36,12 @@ class MIQExtract
36
36
  @target = filename
37
37
  @configFile = filename.respond_to?(:vmConfigFile) ? @target.vmConfigFile : nil
38
38
 
39
- $log.info "MIQExtract using config file: [#{@configFile}] settings: [#{MiqPassword.sanitize_string(ost.scanData.inspect)}]"
39
+ $log.info "MIQExtract using config file: [#{@configFile}] settings: [#{ManageIQ::Password.sanitize_string(ost.scanData.inspect)}]"
40
40
  else
41
41
  @externalMount = false
42
42
  @configFile = filename.gsub(/^"/, "").gsub(/"$/, "")
43
43
 
44
- $log.info "MIQExtract using config file: [#{@configFile}] settings: [#{MiqPassword.sanitize_string(ost.scanData.inspect)}]"
44
+ $log.info "MIQExtract using config file: [#{@configFile}] settings: [#{ManageIQ::Password.sanitize_string(ost.scanData.inspect)}]"
45
45
  ost.openParent = true if ost.scanData.fetch_path('snapshot', 'use_existing') == true
46
46
  ost.force = false if ost.scanData.fetch_path('snapshot', 'forceFleeceDefault') == false
47
47
  ost.snapshotDescription = ost.scanData.fetch_path('snapshot', 'description') if ost.scanData.fetch_path('snapshot', 'description')
@@ -32,7 +32,7 @@ module VMPlatformMountLinux
32
32
  # TODO: passing the user name and password on the command line is BAD.
33
33
  # Change this to use web-services.
34
34
  #
35
- @cs = MiqPassword::Key.new
35
+ @cs = ManageIQ::Password::Key.new
36
36
  cmd = "#{VCBNAME} -h #{@ems['host']} -u #{@ems['user']} -p #{@cs.decrypt64(@ems['password'])} -s \"Name:#{@vmName}\" | grep \"moref:\""
37
37
  #
38
38
  # XXX Don't forget to remove this. We're logging the username and password, not good.
@@ -408,7 +408,7 @@ class VmConfig
408
408
 
409
409
  require 'VMwareWebService/miq_fault_tolerant_vim'
410
410
 
411
- password_decrypt = MiqPassword.decrypt(ems_host['password'])
411
+ password_decrypt = ManageIQ::Password.decrypt(ems_host['password'])
412
412
  hostVim = MiqFaultTolerantVim.new(:ip => ems_host['host'], :user => ems_host['user'], :pass => password_decrypt, :use_broker => ems_host['use_vim_broker'], :vim_broker_drb_uri => ems_host['vim_broker_drb_uri'])
413
413
  $log.info "#{conn_reason}: Connection to [#{ems_display_text}] completed for VM:[#{vmCfgFile}] in [#{Time.now - st}] seconds"
414
414
  return hostVim
@@ -425,7 +425,7 @@ class VmConfig
425
425
  ems = host_vim_credentials
426
426
  return (filename) if ems.nil?
427
427
 
428
- password_decrypt = MiqPassword.decrypt(ems['password'])
428
+ password_decrypt = ManageIQ::Password.decrypt(ems['password'])
429
429
  $log.debug "resolve_path_names: emsHost = #{ems['host']}, emsUser = #{ems['user']}" if $log
430
430
  vi = MiqVimInventory.new(ems['host'], ems['user'], password_decrypt)
431
431
  return getDsName(filename, vi)
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency "binary_struct", "~> 2.1"
25
25
  spec.add_dependency "iniparse"
26
26
  spec.add_dependency "linux_block_device", "~>0.2.1"
27
+ spec.add_dependency "manageiq-password", "~>0.1.0"
27
28
  spec.add_dependency "memory_buffer", ">=0.1.0"
28
29
  spec.add_dependency "rufus-lru", "~>1.0.3"
29
30
  spec.add_dependency "sys-uname", "~>1.0.1"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.15
4
+ version: 0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: 0.2.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: manageiq-password
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.1.0
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.1.0
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: memory_buffer
71
85
  requirement: !ruby/object:Gem::Requirement