← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1541238] Re: No response message after we delete an image

 

> We have to perform "glance image-list" to check it is deleted or not

Not really. If a failure occurs the command will 1) exit with a non-zero
exit status, 2) print an error

If the return status to the operating system is 0, the delete has
succeeded.

This is fairly typical for the UNIX command line:

http://www.catb.org/esr/writings/taoup/html/ch01s06.html

 Rule of Silence: When a program has nothing surprising to say, it
should say nothing.

 $ glance image-delete f05e145a-2444-41f4-a9ac-14bb52bbe0bc
 $ echo $?
 0

 $ glance image-delete 60821f66-1e10-4754-9c02-567a2d753957
 You are not permitted to delete the image '60821f66-1e10-4754-9c02-567a2d753957'.
 $ echo $?
 1


** Changed in: glance
       Status: In Progress => Opinion

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1541238

Title:
  No response message after we delete an image

Status in Glance:
  Opinion

Bug description:
  When an image is deleted there is no message on successful deletion.

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1541238/+subscriptions


References