Remove duplicated states from zk.py

Zuul defines the node states within model.py. The states in zk.py
are a holdover from copied code from the nodepool code base and
are not used. Let's just have a single place for the states.

Change-Id: I3f0cd40a04040baffbc04895049e7472ad30bf4b
changes/56/489256/2
David Shrewsbury 6 years ago
parent ffab07a844
commit 955799b377

@ -23,17 +23,6 @@ from kazoo.recipe.lock import Lock
import zuul.model
# States:
# We are building this node but it is not ready for use.
BUILDING = 'building'
# The node is ready for use.
READY = 'ready'
# The node should be deleted.
DELETING = 'deleting'
STATES = set([BUILDING, READY, DELETING])
class LockException(Exception):
pass

Loading…
Cancel
Save