swift-drive-audit: additional exit codes
Bug #1359664 reported by
Filippo Giunchedi
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
we found it useful to have more detailed exit statues from swift-drive-audit on the actions it performed, I'm attaching a patch to explain the general idea. Let me know if you find it useful!
thanks,
filippo
To post a comment you must log in.
I like the idea of more information encoded in the exit status - we could probably adopt the idea in other places. Do you wanna get it up in gerrit?!
I didn't know about the os.EX_* attributes; and EX_OK (0), EX_CONFIG (78), EX_USAGE (64), EX_OSFILE (72) all seem to be defined on my Mac and Ubuntu dev machines; but I worry they may not be on every system that's currently running the drive audit script? [1]
1. http:// bugs.python. org/issue9933