Don't set 'state' variable
This shouldn't really be used - it creates a false sense of
security about us having an instance var called 'state' that
actually really matches state.
Optimistic locking for everything via the k8s API :)
@@ -119,7 +119,8 @@ class Build:
ret = self.api.create_namespaced_pod(self.namespace, self.pod)
except client.rest.ApiException as e:
if e.status == 409:
- self.already_exists = True
+ # Someone else created it!
+ pass
else:
raise
