Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENT-11158: cf-remote deploy now looks for masterfiles in current working directory #73

Merged
merged 1 commit into from
Jan 11, 2024

Conversation

craigcomstock
Copy link
Contributor

Ticket: ENT-11158
Changelog: title

Comment on lines +810 to +811
if not masterfiles:
masterfiles = "."
Copy link
Member

Choose a reason for hiding this comment

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

I would add a print message similar to line 802 for this. Also, maybe we can perform some sanity check first? Maybe look for promises.cf?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, here's what it does now:

Craigs-MacBook-Pro.local ? cf-remote deploy --hub vagrant@ubuntu-20
cf-remote: No cfbs or masterfiles policy set found
Craigs-MacBook-Pro.local ? cd cfe/play-cfbs/
Craigs-MacBook-Pro.local ? cf-remote deploy --hub vagrant@ubuntu-20
Found cfbs policy set: 'out/masterfiles.tgz'
Craigs-MacBook-Pro.local ? cd ../masterfiles/
Craigs-MacBook-Pro.local ? cf-remote deploy --hub vagrant@ubuntu-20
Found masterfiles policy set: '/Users/craig/cfe/masterfiles'

@olehermanse olehermanse changed the title ENT-11158: If no masterfiles path is given to cf-remote deploy and no cfbs, then use . ENT-11158: cf-remote deploy now looks for masterfiles in current working directory Jan 11, 2024
Copy link
Member

@olehermanse olehermanse left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks!

@olehermanse olehermanse merged commit 60ddb1d into cfengine:master Jan 11, 2024
5 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