canonical / jhack

Chock-full of Juju hackery.
Apache License 2.0
51 stars 24 forks source link

get_substrate helper to determine if a model is machine or k8s #40

Closed PietroPasotti closed 1 year ago

PietroPasotti commented 1 year ago

this allows us to get rid of several --machine flags in commands, and fix an old todo in simulate_event (jhack fire)

rbarry82 commented 1 year ago

Sorry @PietroPasotti -- I meant to respond to this today! After getting the Proxy out, I was off machine models for a couple of days, but I did verify that this worked on my model (LXD, 3.0.2 controller, mostly focal machines)