lib/process/cloud/process/keypairs.rb in lorj_cloud-0.1.11 vs lib/process/cloud/process/keypairs.rb in lorj_cloud-0.1.12
- old
+ new
@@ -117,11 +117,11 @@
obj_needs_optional
# By default optional. But required by the ssh case if needed.
obj_needs :data, :keypair_path
obj_needs :data, :keypair_base
# By default optional. But required by the import case if needed.
- obj_needs :data, :public_key, :for => [:create_e]
+ obj_needs :data, :public_key, :for => [:create_e]
def_attribute :public_key
end
# Keypair management: Internal process functions
@@ -331,12 +331,12 @@
if !pub_keypair.nil? && pub_keypair != ''
return false unless loc_kpair[:public_key_exist?]
begin
loc_pubkey = File.read(File.join(loc_kpair[:keypair_path],
loc_kpair[:public_key_name]))
- rescue => e
- PrcLib.error("Unable to read '%s'.\n%s",
- loc_kpair[:public_key_file], e.message)
+ rescue => e
+ PrcLib.error("Unable to read '%s'.\n%s",
+ loc_kpair[:public_key_file], e.message)
else
if loc_pubkey.split(' ')[1].strip == pub_keypair.split(' ')[1].strip
is_coherent = true
end
end