Skip to content

Commit

Permalink
log error for url verification failure (operator-framework#5595)
Browse files Browse the repository at this point in the history
* log error for url verification failure

Signed-off-by: Clyde Germond <[email protected]>
Signed-off-by: Prashant Arya <[email protected]>
  • Loading branch information
germondc authored and prary committed Apr 2, 2022
1 parent 7b0095f commit 19dd77e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions changelog/fragments/log-error-url-verification.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# entries is a list of entries to include in
# release notes and/or the migration guide
entries:
- description: >
Added log so that URL verification errors when starting the ansible-operator are not silently swallowed.
kind: "addition"
breaking: false
1 change: 1 addition & 0 deletions internal/cmd/ansible-operator/run/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ func run(cmd *cobra.Command, f *flags.Flags) {
}

if err := verifyCfgURL(cfg.Host); err != nil {
log.Error(err, "URL verification failed.")
os.Exit(1)
}

Expand Down

0 comments on commit 19dd77e

Please sign in to comment.