Please review pull request #272: Display the correct option when raising the error - issue #7476 opened by (deanwilson)

Description:

Display the correct option when raising the error - issue #7476

  • Opened: Wed Dec 14 02:53:05 UTC 2011
  • Based on: puppetlabs:master (464a279c7425643188024ba7f98392b9057d6e35)
  • Requested merge: deanwilson:issues-7476 (4bea1ef5dca1189d69d166aa9ee7018c57e55862)

Diff follows:

diff --git a/lib/puppet/ssl/certificate_authority/interface.rb b/lib/puppet/ssl/certificate_authority/interface.rb
index 1e4e06e..305d502 100644
--- a/lib/puppet/ssl/certificate_authority/interface.rb
+++ b/lib/puppet/ssl/certificate_authority/interface.rb
@@ -14,7 +14,7 @@ class InterfaceError < ArgumentError; end
         # Actually perform the work.
         def apply(ca)
           unless subjects or method == :list
-            raise ArgumentError, "You must provide hosts or :all when using #{method}"
+            raise ArgumentError, "You must provide hosts or --all when using #{method}"
           end
 
           begin

    

--
You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to