Is a set state called multiple times?
fengxia
fxia1 at lenovo.com
Thu Jul 27 01:37:52 UTC 2017
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
fxia1 at lenovo.com
Lenovo.com
Twitter | Facebook | Instagram | Blogs | Forums
More information about the Juju
mailing list