anchor.diff:  #!/bin/bash -xe
   
   function revert_back_to_centos() {
  -# Removes redhat-release-server rpm and replaces it with centos-release
  +  # Removes redhat-release-server rpm and replaces it with centos-release
     echo "Removing Red Hat temporary configuration."
     if rpm -q redhat-release-server &>/dev/null; then
       rpm -Uvh --force /root/centos-release/centos-release*.rpm
  +    rm -f /etc/yum.repos.d/CentOS*
       rpm -e --nodeps --noscripts redhat-release-server
     fi
     #Disable subscription-manager and rhn plugins
  
positive.code: rhnpackages="m2crypto rhn-check rhn-client-tools rhnlib rhnsd rhn-setup yum-rhn-plugin redhat-release-server"
  rm -rf /root/rhnpackages
  mkdir -p /root/rhnpackages
  yum-config-manager --enable rhel-6-server-rpms
  success="false"
  for tries in 1 2 3; do
    yumdownloader --releasever=<%= releasever %> --disablerepo='nailgun*' --disablerepo='fuel*' --setopt='*.skip_if_unavailable=1' --resolve --destdir /root/rhnpackages $rhnpackages
  
negative.code: 
  #Disable subscription-manager plugins
  for plugin in $rhsm_plugins; do
    sed -i 's/^enabled.*/enabled=0/' "/etc/yum/pluginconf.d/${plugin}.conf" 2>/dev/null || :
  done
  
  #Run registration
  