[PATCH conductor] Do not offer to delete imported provider images

Matt Wagner matt.wagner at redhat.com
Mon Feb 27 17:51:44 UTC 2012


Part of https://bugzilla.redhat.com/show_bug.cgi?id=761279
---
 src/app/views/images/show.html.haml |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/app/views/images/show.html.haml b/src/app/views/images/show.html.haml
index 7681cee..dad7e15 100644
--- a/src/app/views/images/show.html.haml
+++ b/src/app/views/images/show.html.haml
@@ -107,7 +107,7 @@
                                 - failed_push_count = @builder.failed_push_count(timg.id, account.provider.name, account.credentials_hash['username'])
                                 - if failed_push_count > 0
                                   = t('images.show.failed_push_attempts', :count => failed_push_count)
-                            - elsif pimg
+                            - elsif pimg and not @image.imported?
                               = button_to "", image_provider_image_path(@image.id, pimg.id), :method => :delete, :class => 'delete_image'
                             - else
                                
-- 
1.7.6.5




More information about the aeolus-devel mailing list