Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
charms.reactive all_states appears to be destructive #42
Comments
chuckbutler
added
the
bug
label
Dec 14, 2015
|
Caling "all_states" remove the states? Is that what is supposed to do? Or is it a nasty side effect of calling that method? |
|
I'm unable to reproduce that: ubuntu@murdoch:~$ charms.reactive get_states
{}
ubuntu@murdoch:~$ charms.reactive set_state foo
ubuntu@murdoch:~$ charms.reactive get_states
{u'foo': None}
ubuntu@murdoch:~$ charms.reactive set_state bar
ubuntu@murdoch:~$ charms.reactive get_states
{u'foo': None, u'bar': None}
ubuntu@murdoch:~$ charms.reactive all_states
ubuntu@murdoch:~$ charms.reactive get_states
{u'foo': None, u'bar': None}
ubuntu@murdoch:~$ charms.reactive all_states foo bar && echo Yep
Yep
ubuntu@murdoch:~$ charms.reactive all_states foo bar qux && echo Yep
ubuntu@murdoch:~$ charms.reactive all_states foo bar && echo Yep
Yep
ubuntu@murdoch:~$ charms.reactive get_states
{u'foo': None, u'bar': None}Can you provide more info on how to reproduce that? That definitely should not happen! |
|
well, it appears this was a false positive. I'm going to close this for now pending further capacity to reproduce... |
chuckbutler
closed this
Dec 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chuckbutler commentedDec 14, 2015
when debugging a unit, i frequently forget that it's
charms.reactive get_statesto return the listing of active states on the unit.when i run
charms.reactive all_statesthis seems to wipe the current state of the machine, verified with charms.reactive get_states returning am empty dict