bthomas | Chipaca: I wasn't mocking you on MM. Dylan mentioned that it was possible to find the IP address of the unit executing a charm hook by passing no argument to get_binding. I thought that was odd because the argument was not optional, and if that was indeed the behaviour I felt you ought to be informed. | 09:46 |
---|---|---|
bthomas | It turns out that Dylan had it wrong and you can not call that function without an argument. | 09:47 |
facubatista | ¡Muy buenos días a todos! | 10:59 |
bthomas | नमस्ते facubatista | 11:00 |
facubatista | hola bthomas | 11:01 |
bthomas | I have a module variable SEED_SIZE in my Charm. I was thinking I could access this as self.harness.charm.SEED_SIZE . But this does not turn out to be the case. Is there any other way ? | 11:02 |
bthomas | Alternatively would it be better to eschew module variables that change pod_spec and use charm config instead to allow for better testability ? | 11:06 |
Chipaca | bthomas: a module variable? it'd be just <module>.SEED_SIZE | 11:11 |
bthomas | thanks | 11:11 |
Chipaca | bthomas: i mean, you did 'from charm import MyCharm' or something like that, then 'from charm import SEED_SIZE', or 'import charm' and then use charm.SEED_SIZE | 11:11 |
Chipaca | anyway, i'm off for a bit | 11:11 |
* Chipaca ⇝ runch | 11:12 | |
bthomas | Chipaca: thanks got it | 11:12 |
* facubatista -> errands (ones I cancelled yesterday :p ) | 13:17 | |
* Chipaca can't read 'errand' without thinking of the belgariad | 13:44 | |
* facubatista is back | 14:08 | |
mup | PR operator#417 closed: Added a few doc strings to charm module <Created by balbirthomas> <Merged by chipaca> <https://github.com/canonical/operator/pull/417> | 16:55 |
* Chipaca EODs | 18:20 | |
mup | PR operator#422 closed: Allow nesting of disable_hooks context manager <Created by stub42> <Merged by chipaca> <https://github.com/canonical/operator/pull/422> | 18:20 |
facubatista | bthomas, justinclark, review appreciated on this simple preparation PR: https://github.com/canonical/charmcraft/pull/172 -- thanks! | 18:38 |
mup | PR charmcraft#172: Small improvements in preparation for the commands refactor branch <Created by facundobatista> <https://github.com/canonical/charmcraft/pull/172> | 18:38 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!