Added a check before executing the real yum upgrade (not to brake the system).