manageiq-smartstate 0.2.16 → 0.2.17

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: b8ffe0ea7f752ee9698daddf1ebb4f78233e57f6
4
- data.tar.gz: 516997461f598bc97ef96df4df1ade730edce39d
3
+ metadata.gz: 3b8e33266c5e930c4fb7cb3ba9cb36aa677d1338
4
+ data.tar.gz: 8b6e27c31447e7e774f413adbf2110d644882b85
5
5
  SHA512:
6
- metadata.gz: 0e8c0e84ba2b336b6081d87dbbcf432f0deb831f4467d366aa4461fa9d1449255a175bd0a32e19446ef80ec5d570926adf8f1a43fbccdde849a7c8530d6cddae
7
- data.tar.gz: cfe139450f783f6a4ced52ed9262e1c15d660ec4671ecea3cd9f2859a3a4ebd000fa3cc1226208d064395ca1c72522e0ea13381420c84cd363055acf9346d99a
6
+ metadata.gz: '051818848cbd75df0b114b5ace9d8c725abbe58561bcdf86545d45111c52ce5b5ec93fc719d4218bcd3ec2e47e21252852a814b95416ce2c7741ab621870204d'
7
+ data.tar.gz: 7f6aae9847d15975a8766c2dffd4973bc361ad8d529c5cb3ac176fddd81db9cabef376a2bdc628e466e4b49169e6aaa84170a1ff907489cb680c2380abf3cbde
@@ -1,4 +1,4 @@
1
- require 'manageiq/password'
1
+ require 'util/miq-password'
2
2
  require 'VMwareWebService/MiqVim'
3
3
 
4
4
  module VolMgrPlatformSupportLinux
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.2.16".freeze
3
+ VERSION = "0.2.17".freeze
4
4
  end
5
5
  end
@@ -16,7 +16,7 @@ require 'metadata/ScanProfile/VmScanProfiles'
16
16
  require 'VMwareWebService/MiqVim'
17
17
  require 'OpenStackExtract/MiqOpenStackVm/MiqOpenStackImage'
18
18
  require 'OpenStackExtract/MiqOpenStackVm/MiqOpenStackInstance'
19
- require 'manageiq/password'
19
+ require 'util/miq-password'
20
20
  require 'VMwareWebService/MiqVimBroker'
21
21
 
22
22
  class MIQExtract
@@ -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: [#{ManageIQ::Password.sanitize_string(ost.scanData.inspect)}]"
39
+ $log.info "MIQExtract using config file: [#{@configFile}] settings: [#{MiqPassword.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: [#{ManageIQ::Password.sanitize_string(ost.scanData.inspect)}]"
44
+ $log.info "MIQExtract using config file: [#{@configFile}] settings: [#{MiqPassword.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')
@@ -1,4 +1,4 @@
1
- require 'manageiq/password'
1
+ require 'util/miq-password'
2
2
 
3
3
  module VMPlatformMountLinux
4
4
  VCBNAME = '/usr/sbin/vcbVmName'
@@ -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 = ManageIQ::Password::Key.new
35
+ @cs = MiqPassword::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 = ManageIQ::Password.decrypt(ems_host['password'])
411
+ password_decrypt = MiqPassword.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 = ManageIQ::Password.decrypt(ems['password'])
428
+ password_decrypt = MiqPassword.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,7 +24,6 @@ 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"
28
27
  spec.add_dependency "memory_buffer", ">=0.1.0"
29
28
  spec.add_dependency "rufus-lru", "~>1.0.3"
30
29
  spec.add_dependency "sys-uname", "~>1.0.1"
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.16
4
+ version: 0.2.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-08 00:00:00.000000000 Z
11
+ date: 2018-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest
@@ -66,20 +66,6 @@ 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
83
69
  - !ruby/object:Gem::Dependency
84
70
  name: memory_buffer
85
71
  requirement: !ruby/object:Gem::Requirement