Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 876099 Details for
Bug 1077906
Device.kids field out of sync with actual number of children
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
A patch that catches the first instance when child count goes below 0 when removeChild is called.
0001-Throw-an-exception-if-removing-non-existant-child.patch (text/plain), 792 bytes, created by
mulhern
on 2014-03-18 19:47:35 UTC
(
hide
)
Description:
A patch that catches the first instance when child count goes below 0 when removeChild is called.
Filename:
MIME Type:
Creator:
mulhern
Created:
2014-03-18 19:47:35 UTC
Size:
792 bytes
patch
obsolete
>From 59bc0e810d7e04d63c2c20ee056b9348c8cd7c7d Mon Sep 17 00:00:00 2001 >From: mulhern <amulhern@redhat.com> >Date: Tue, 18 Mar 2014 12:57:45 -0400 >Subject: [PATCH] Throw an exception if removing non-existant child. > >Signed-off-by: mulhern <amulhern@redhat.com> >--- > blivet/devices.py | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/blivet/devices.py b/blivet/devices.py >index e403551..a26d601 100644 >--- a/blivet/devices.py >+++ b/blivet/devices.py >@@ -281,6 +281,8 @@ class Device(object): > > def removeChild(self): > log_method_call(self, name=self.name, kids=self.kids) >+ if self.kids <= 0: >+ raise ValueError("Oops, %d kids is too few to be removing one from device %r." % (self.kids, self)) > self.kids -= 1 > > def addChild(self): >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1077906
: 876099 |
876100
|
876101
|
876102