summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-12-23 12:09:24 -0500
committerCasey Dahlin <cdahlin@redhat.com>2008-12-23 12:09:24 -0500
commit3eb56b98ef3063d913398bea7d8776f880998391 (patch)
tree1452f21956d2f4e1359929f131d81753c92b6cb9
parent05f16d4172788f21c7d0c48172e12434d1e2b9cd (diff)
downloadupstate-3eb56b98ef3063d913398bea7d8776f880998391.tar.gz
upstate-3eb56b98ef3063d913398bea7d8776f880998391.tar.xz
upstate-3eb56b98ef3063d913398bea7d8776f880998391.zip
Make bring_up use add_hold instead of manually touching self.up
-rw-r--r--statemachine.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/statemachine.py b/statemachine.py
index 3a0e116..b8657fa 100644
--- a/statemachine.py
+++ b/statemachine.py
@@ -31,11 +31,11 @@ class StateMachine:
else:
found.append(res)
if found == None:
- self.up.add(cat)
+ self.add_hold(cat)
return True
to_add = self.cat_cross(found)
for x in to_add:
- self.up.add(x)
+ self.add_hold(x)
return True
def cat_cross(self, found):