testlab 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,10 +12,6 @@ class TestLab
12
12
  node_home_dir = ((self.container.node.user == "root") ? %(/root) : %(/home/#{self.container.node.user}))
13
13
  node_authkeys = File.join(node_home_dir, ".ssh", "authorized_keys")
14
14
 
15
- user_home_dir = File.join(self.container.lxc.fs_root, ((self.id == "root") ? %(/root) : %(/home/#{self.id})))
16
- user_authkeys = File.join(user_home_dir, ".ssh", "authorized_keys")
17
- user_authkeys2 = File.join(user_home_dir, ".ssh", "authorized_keys2")
18
-
19
15
  # ensure the container user exists
20
16
  container_passwd_file = File.join(self.container.lxc.fs_root, "etc", "passwd")
21
17
  if self.container.node.ssh.exec(%(sudo grep "#{self.id}" #{container_passwd_file}), :ignore_exit_status => true).exit_code != 0
@@ -35,6 +31,10 @@ class TestLab
35
31
  end
36
32
 
37
33
  # ensure the user user gets our node user key
34
+ user_home_dir = File.join(self.container.lxc.fs_root, ((self.id == "root") ? %(/root) : %(/home/#{self.id})))
35
+ user_authkeys = File.join(user_home_dir, ".ssh", "authorized_keys")
36
+ user_authkeys2 = File.join(user_home_dir, ".ssh", "authorized_keys2")
37
+
38
38
  authkeys = {
39
39
  node_authkeys => user_authkeys,
40
40
  node_authkeys => user_authkeys2
@@ -1,6 +1,6 @@
1
1
  class TestLab
2
2
  unless const_defined?(:VERSION)
3
3
  # TestLab Gem Version
4
- VERSION = "0.6.2"
4
+ VERSION = "0.6.3"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testlab
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -293,7 +293,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
293
293
  version: '0'
294
294
  segments:
295
295
  - 0
296
- hash: -1071907971600767403
296
+ hash: -429496536353905042
297
297
  required_rubygems_version: !ruby/object:Gem::Requirement
298
298
  none: false
299
299
  requirements:
@@ -302,7 +302,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
302
302
  version: '0'
303
303
  segments:
304
304
  - 0
305
- hash: -1071907971600767403
305
+ hash: -429496536353905042
306
306
  requirements: []
307
307
  rubyforge_project:
308
308
  rubygems_version: 1.8.25