lib/security.rb in forj-0.0.42 vs lib/security.rb in forj-0.0.43
- old
+ new
@@ -171,10 +171,10 @@
end
def hpc_import_key(oForjAccount)
keys = keypair_detect(oForjAccount.get('keypair_name'), oForjAccount.get('keypair_path'))
- account = oForjAccount.get(:name)
+ account = oForjAccount.getAccountData(:account, :name)
Logging.fatal(1, "'keypair_path' undefined. check your config.yaml file.") if not keys[:keypair_path]
Logging.fatal(1, "'keypair_name' undefined. check your config.yaml file.") if not keys[:keypair_name]
Logging.fatal(1, "keypair '%s' are missing. Please call 'forj setup %s' to create the missing key pair required." % [keys[:keypair_name], account]) if not keys[:public_key_exist?]