anchor.diff:  
   #Disable subscription-manager plugins
   for plugin in $rhsm_plugins; do
  -  sed -i 's/^enabled.*/enabled=1/' "/etc/yum/pluginconf.d/${plugin}.conf" 2>/dev/null || :
  +  sed -i 's/^enabled.*/enabled=0/' "/etc/yum/pluginconf.d/${plugin}.conf" 2>/dev/null || :
   done
   
   #Run registration
  
positive.code: #!/bin/bash -xe
  
  function revert_back_to_centos() {
  # 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
      rpm -e --nodeps --noscripts redhat-release-server
    fi
    #Disable subscription-manager and rhn plugins
  
negative.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 &> /dev/null
  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
  