-
Notifications
You must be signed in to change notification settings - Fork 252
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
step ca renew
in offline mode should not require --ca-url
and --root
flags.
#629
Conversation
Ralf Henschkowski seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
step ca renew
in offline mode should not require --ca-url
and --root
flags.
@henschkowski, thanks for the PR! Would you mind signing our CLA please? |
Signed it .
Max ***@***.***> schrieb am Mi., 9. Feb. 2022, 20:57:
… @henschkowski <https://github.com/henschkowski>, thanks for the PR! Would
you mind signing our CLA please?
—
Reply to this email directly, view it on GitHub
<#629 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACTD6FW3WG4T4UB76K2VLDU2LBJ5ANCNFSM5N4ZIB7Q>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @henschkowski, thanks for the PR, but can you change the condition.
@@ -445,7 +445,8 @@ func ParseTemplateData(ctx *cli.Context) (json.RawMessage, error) { | |||
// - Error if the URL scheme is not implicitly or explicitly 'https'. | |||
func ParseCaURL(ctx *cli.Context) (string, error) { | |||
caURL := ctx.String("ca-url") | |||
if caURL == "" { | |||
if caURL == "" && | |||
!ctx.IsSet("offline") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would use !ctx.Bool("offline")
because --offline=false is a valid option too.
Pulled this into another PR to fix the conflict which is from something else we recently merged. |
Fixes #627.
I'm new to Go - this is my attempt to fix the issue.
💔Thank you!