aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/leap_cli/commands/user.rb2
-rw-r--r--lib/leap_cli/util.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/leap_cli/commands/user.rb b/lib/leap_cli/commands/user.rb
index 7be91c8..a7bf848 100644
--- a/lib/leap_cli/commands/user.rb
+++ b/lib/leap_cli/commands/user.rb
@@ -45,7 +45,7 @@ module LeapCli
end
assert!(ssh_pub_key, 'Sorry, could not find SSH public key.')
- assert!(pgp_pub_key, 'Sorry, could not find OpenPGP public key.')
+ #assert!(pgp_pub_key, 'Sorry, could not find OpenPGP public key.')
if ssh_pub_key
write_file!([:user_ssh, username], ssh_pub_key)
diff --git a/lib/leap_cli/util.rb b/lib/leap_cli/util.rb
index 53bad35..fdbdc8a 100644
--- a/lib/leap_cli/util.rb
+++ b/lib/leap_cli/util.rb
@@ -127,7 +127,7 @@ module LeapCli
def read_file!(filepath)
filepath = Path.named_path(filepath)
if !File.exists?(filepath)
- bail!("File '%s' does not exist." % exc.file_path)
+ bail!("File '%s' does not exist." % filepath)
else
File.read(filepath)
end