Skip to content

Commit 39f2358

Browse files
fix molecule test
Signed-off-by: varshaprasad96 <[email protected]>
1 parent 8bf53fb commit 39f2358

File tree

3 files changed

+2
-3
lines changed
  • internal
    • cmd/ansible-operator/run
    • plugins/ansible/v1/scaffolds/internal/templates/molecule/mdefault
  • testdata/ansible/memcached-operator/molecule/default

3 files changed

+2
-3
lines changed

Diff for: internal/cmd/ansible-operator/run/cmd.go

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ func run(cmd *cobra.Command, f *flags.Flags) {
106106
}
107107

108108
if err := verifyCfgURL(cfg.Host); err != nil {
109-
log.Error(err, "Failed toverify config endpoint")
110109
os.Exit(1)
111110
}
112111

Diff for: internal/plugins/ansible/v1/scaffolds/internal/templates/molecule/mdefault/prepare.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const prepareTemplate = `---
5656
chdir: '{{ "{{ config_dir }}" }}/testing'
5757
5858
- name: Set pull policy
59-
command: '{{ "{{ kustomize }}" }} edit add patch pull_policy/{{ "{{ operator_pull_policy }}" }}.yaml'
59+
command: '{{ "{{ kustomize }}" }} edit add patch --path pull_policy/{{ "{{ operator_pull_policy }}" }}.yaml'
6060
args:
6161
chdir: '{{ "{{ config_dir }}" }}/testing'
6262

Diff for: testdata/ansible/memcached-operator/molecule/default/prepare.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
chdir: '{{ config_dir }}/testing'
1919

2020
- name: Set pull policy
21-
command: '{{ kustomize }} edit add patch pull_policy/{{ operator_pull_policy }}.yaml'
21+
command: '{{ kustomize }} edit add patch --path pull_policy/{{ operator_pull_policy }}.yaml'
2222
args:
2323
chdir: '{{ config_dir }}/testing'
2424

0 commit comments

Comments
 (0)