Replies: 2 comments 1 reply
-
|
Got it to work with a simple host.get_fact(Command, f"git clone '{dot.get('url')}' '{dotLoc}'", _sudo=True, _sudo_user=user)Bit of a hack, sure, but oh well |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Ah so it errors because the host/state context haven't been set (error is poor), untested but roughly should work: from pyinfra.context import ctx_state, ctx_host
with ctx_state.use(state):
with ctx_host.use(host):
handleGitRepo(users, sysUsers, dot, host, state) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
when doing something like:
it spits out
how can I handle this correctly?
Beta Was this translation helpful? Give feedback.
All reactions