Skip to content

Updated behaviour of cfengine run-command#179

Merged
olehermanse merged 2 commits into
cfengine:mainfrom
SimonThalvorsen:main
Jul 16, 2026
Merged

Updated behaviour of cfengine run-command#179
olehermanse merged 2 commits into
cfengine:mainfrom
SimonThalvorsen:main

Conversation

@SimonThalvorsen

Copy link
Copy Markdown
Contributor

No description provided.

Now checks if policy exists on remote host or locally. Transfers file as
needed from local -> remote, and prompts the user if there is any
ambiguity.

Ticket: None
Changelog: None

Signed-off-by: Simon Halvorsen <simon.halvorsen@northern.tech>

@olehermanse olehermanse left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice improvement! I think ideally we want to use the local one if it exists, and upload it, run it and rm it. I don't think overwriting a policy file with the same name in the home dir is a big deal we need to prevent. I guess with this change it would be copied the first time, and then prompted every time after, which seems a bit annoying.

Being able to run a file already on the remote is a "nice-to-have" but I don't think it will be that important / common.

@olehermanse
olehermanse merged commit 0c74840 into cfengine:main Jul 16, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants