foreman_azure_rm 2.0.7 → 2.0.8

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
  SHA256:
3
- metadata.gz: c6b3d52bb180b583d6d307ef39a00efea028a52cb783d0f5dcfb1635e9e73c74
4
- data.tar.gz: db51091159e0eb00bcf3bfe3c13d6eee7c66e4db53e49200988717ac352ad0aa
3
+ metadata.gz: a2d29d9fff7cb29f082a0c008cd3d9b79bf57f393db10f361abf90fbbd6509d5
4
+ data.tar.gz: 40bd288f1f3767674748b10db7592c1dfaab600dcd1d0ff87a858a63787a5690
5
5
  SHA512:
6
- metadata.gz: 0203261bd33988e9f453e8247bef50fff3c7ece7e265e7928f20c27b9c147c5f7207431056d4b5549bcfc6951456e2819e9b0d5c724eec0ee950ed09d0d64e63
7
- data.tar.gz: d4a34c46a09a35b9e0bcb42df77ef24d9f6a99ce3216e72c736ffb782f18c036f523d8a0ccdaf2df009519a30aa5d54a330a5b57397aa87edb1e8a461a09549a
6
+ metadata.gz: f602a038538c724ca912136bc02f6d6800b113eae462fdf860bcb24823af283767d95fae75811f76b622191b374dc8ebb5bb17c02656c2acf93aa2ef909fc47d
7
+ data.tar.gz: daf44548c0678ceb8ca3f00c7e5b7ad66f7f66ad337c2e09c2dd0b4ad697fa0ca935a0d559f3b0e39ea3b77d375315e100dfd3f5c547e60ef85eb8d76b2e23b8
@@ -188,8 +188,12 @@ module ForemanAzureRm
188
188
  # Index is based on script_command that is being injected
189
189
  # from the code in #create_vm. It can be partly hard-coded
190
190
  # since the command shall no change frequently.
191
- user_cmd_index = (vm_extension.settings["commandToExecute"].index("-c"))+ 4
192
- script_command = vm_extension.settings["commandToExecute"][user_cmd_index..-2]
191
+ if ssh_key_data.nil?
192
+ user_cmd_index = (vm_extension.settings["commandToExecute"].index("-c"))+ 4
193
+ script_command = vm_extension.settings["commandToExecute"][user_cmd_index..-2]
194
+ else
195
+ vm_extension.settings["commandToExecute"]
196
+ end
193
197
  else
194
198
  @script_command
195
199
  end
@@ -1,3 +1,3 @@
1
1
  module ForemanAzureRm
2
- VERSION = '2.0.7'.freeze
2
+ VERSION = '2.0.8'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foreman_azure_rm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.7
4
+ version: 2.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditi Puntambekar
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2020-02-17 00:00:00.000000000 Z
13
+ date: 2020-02-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: deface