Skip to content

Commit

Permalink
Merge c0eaf0e into 316f825
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuariojas committed Sep 12, 2018
2 parents 316f825 + c0eaf0e commit bb70d3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/kitchen/driver/openstack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def find_network(network_ref)
def default_name
[
instance.name.gsub(/\W/, "")[0..14],
(Etc.getpwuid.name || "nologin").gsub(/\W/, "")[0..14],
(Etc.getpwuid ? Etc.getpwuid.name : Etc.getlogin || "nologin").gsub(/\W/, "")[0..14],
Socket.gethostname.gsub(/\W/, "")[0..22],
Array.new(7) { rand(36).to_s(36) }.join,
].join("-")
Expand Down

0 comments on commit bb70d3d

Please sign in to comment.