[PATCH aeolus-cli 8/9] Correct typo and delete commented out code

Petr Blaho pblaho at redhat.com
Thu Dec 22 22:05:54 UTC 2011


---
 lib/aeolus_cli/command/base_command.rb   |    4 ----
 lib/aeolus_cli/command/import_command.rb |    2 +-
 2 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/lib/aeolus_cli/command/base_command.rb b/lib/aeolus_cli/command/base_command.rb
index 91ef445..48e8eb5 100644
--- a/lib/aeolus_cli/command/base_command.rb
+++ b/lib/aeolus_cli/command/base_command.rb
@@ -99,10 +99,6 @@ module Aeolus
           code = "Argument Error"
           message = e.message
 
-#        elsif e.is_a?(ActiveResource::ResourceNotFound)
-#          code = "ResourceNotFound"
-#          message = "Could not find resource"
-
         elsif e.respond_to?(:response)
           doc = Nokogiri::XML e.response.body
           code = doc.xpath("/error/code").text
diff --git a/lib/aeolus_cli/command/import_command.rb b/lib/aeolus_cli/command/import_command.rb
index c765d4e..9e740d3 100644
--- a/lib/aeolus_cli/command/import_command.rb
+++ b/lib/aeolus_cli/command/import_command.rb
@@ -80,7 +80,7 @@ module Aeolus
       def validate_description_xml!(xml)
         errors = validate_xml_document(File.dirname(__FILE__) + "/../../../examples/image_desc.rng", xml)
         if errors.length > 0
-          puts "ERROR: The given image descrition does not conform to the xml schema, see below for specific details:"
+          puts "ERROR: The given image description does not conform to the xml schema, see below for specific details:"
           errors.each do |error|
             puts "- " + error.message
           end
-- 
1.7.7.4




More information about the aeolus-devel mailing list