Skip to content

Commit

Permalink
If registration is needed check that reg_code is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mpagot committed Nov 28, 2024
1 parent c9d30e6 commit 43b3435
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ansible/playbooks/registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@
changed_when: false

# Execute Section
- name: Pre-run cleaning registercloudguest
ansible.builtin.assert:
that:
- reg_code | length > 0

Check failure on line 44 in ansible/playbooks/registration.yaml

View workflow job for this annotation

GitHub Actions / build

44:9 [indentation] wrong indentation: expected 10 but found 8
fail_msg: "'reg_code' must not be empty"
success_msg: "'reg_code' is OK"
when:
- not_registered_found
- is_registercloudguest_bin.rc == 0
- not use_suseconnect | bool

# Start by pre-cleaning all. Only run it if:
# - the registercloudguest binary is available
Expand Down

0 comments on commit 43b3435

Please sign in to comment.