]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cm-ansible.git/commitdiff
common: Tolerate new subscription-manager behavior 381/head
authorDavid Galloway <dgallowa@redhat.com>
Mon, 26 Feb 2018 23:29:28 +0000 (18:29 -0500)
committerDavid Galloway <dgallowa@redhat.com>
Mon, 26 Feb 2018 23:30:10 +0000 (18:30 -0500)
subscription-manager throws an error now if there are no releases to list
for a subscribed Beta distro.

Signed-off-by: David Galloway <dgallowa@redhat.com>
roles/common/tasks/rhel-entitlements.yml

index 2892e03864c968bc9a6fe171b7061dd8d2917c2d..ea4b057694cdae5c90563225e7f0d65c2b5df39a 100644 (file)
@@ -60,6 +60,7 @@
   shell: "subscription-manager release --list | grep -E '[0-9]'"
   register: rhsm_release_list
   changed_when: false
+  failed_when: rhsm_release_list.rc != 0 and "Beta" not in ansible_lsb.description
 
 # We don't need to be registered to CDN since there's no packages available
 # for this Beta/Alpha/RC installation