Hi Juju,

Once I set a state, set_state("here"), I want to make sure its @when will only be executed ONCE (when "here" from False->True).

So my thought is to remove_state("here") in its @when("here") code block. If I don't, will this @when be called multiple times if I don't reset this state? What's the good practice here?

--
Feng xia
Engineer
Lenovo USA

Phone: 5088011794
fx...@lenovo.com
        
Lenovo.com
Twitter | Facebook | Instagram | Blogs | Forums


--
Juju mailing list
Juju@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju

Reply via email to