]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
fixed typo with read_file! and don't require pgp key for a user.
authorelijah <elijah@riseup.net>
Tue, 23 Oct 2012 19:09:31 +0000 (12:09 -0700)
committerelijah <elijah@riseup.net>
Tue, 23 Oct 2012 19:09:31 +0000 (12:09 -0700)
lib/leap_cli/commands/user.rb
lib/leap_cli/util.rb

index 7be91c8841009f310cacf74c5c72ae12d93156c5..a7bf848ad7b32bb43608ec6ab8e213a6954777d5 100644 (file)
@@ -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)
index 53bad3560723b138f07b761a3db2d620d485ed51..fdbdc8a4c72447fc85c1c8091fd78a7451d28062 100644 (file)
@@ -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