Answer: when some_variable is a ")0P"%)()0 string, apparently. AAAAAAAAAARGH.
-
-
-
This Tweet is unavailable.
New conversation -
-
-
@patio11 Ansible uses Jinja2, which is basically Python. >>> "0" == True False >>> (not "0") == True False Sorry. -
@damncabbage@patio11 JS has a similar annoyance. == on a string literal to false or true is always false but !!("true") coerces to true - 1 more reply
New conversation -
-
-
@patio11 godel's incompleteness theorem? :DThanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11 Never used Ansible, but I'm guessing some_variable is something like "Null" which is neither true nor false until coerced?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11 ontology was never easy!Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11 Is there a market for systems configuration software that makes sense to programmers and not just sysadmins?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
@patio11 Null/Undef var?Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.