From 6f9eb8bb0d3ecb2acdb039c669a2e5b80ddf7ab8 Mon Sep 17 00:00:00 2001 From: elijah Date: Tue, 23 Oct 2012 12:09:31 -0700 Subject: fixed typo with read_file! and don't require pgp key for a user. --- lib/leap_cli/commands/user.rb | 2 +- lib/leap_cli/util.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3