refactor reboot_if_required for redhat
refactor reboot_if_required for redhat

v-zhongz/azure-linux-extensions,vityagi/azure-linux-extensions,vityagi/azure-linux-extensions,varunkumta/azure-linux-extensions,yuezh/azure-linux-extensions,yuezh/azure-linux-extensions,yuezh/azure-linux-extensions,vityagi/azure-linux-extensions,Snesha/azure-linux-extensions,bpramod/azure-linux-extensions,andyliuliming/azure-linux-extensions,boumenot/azure-linux-extensions,lizzha/azure-linux-extensions,boumenot/azure-linux-extensions,vityagi/azure-linux-extensions,bingosummer/azure-linux-extensions,vityagi/azure-linux-extensions,oaastest/azure-linux-extensions,varunkumta/azure-linux-extensions,andyliuliming/azure-linux-extensions,oaastest/azure-linux-extensions,Azure/azure-linux-extensions,krkhan/azure-linux-extensions,bingosummer/azure-linux-extensions,v-zhongz/azure-linux-extensions,jasonzio/azure-linux-extensions,Snesha/azure-linux-extensions,thomas1206/azure-linux-extensions,bpramod/azure-linux-extensions,Azure/azure-linux-extensions,Azure/azure-linux-extensions,vityagi/azure-linux-extensions,soumyanishan/azure-linux-extensions,boumenot/azure-linux-extensions,Azure/azure-linux-extensions,yuezh/azure-linux-extensions,vityagi/azure-linux-extensions,bpramod/azure-linux-extensions,jasonzio/azure-linux-extensions,bpramod/azure-linux-extensions,boumenot/azure-linux-extensions,lizzha/azure-linux-extensions,bpramod/azure-linux-extensions,Snesha/azure-linux-extensions,Azure/azure-linux-extensions,jasonzio/azure-linux-extensions,lizzha/azure-linux-extensions,krkhan/azure-linux-extensions,Azure/azure-linux-extensions,soumyanishan/azure-linux-extensions,varunkumta/azure-linux-extensions,bingosummer/azure-linux-extensions,krkhan/azure-linux-extensions,jasonzio/azure-linux-extensions,Snesha/azure-linux-extensions,thomas1206/azure-linux-extensions,thomas1206/azure-linux-extensions,bpramod/azure-linux-extensions,bpramod/azure-linux-extensions,v-zhongz/azure-linux-extensions,soumyanishan/azure-linux-extensions,bingosummer/azure-linux-extensions,oaastest/azure-linux-extensions,andyliuliming/azure-linux-extensions,soumyanishan/azure-linux-extensions,varunkumta/azure-linux-extensions,thomas1206/azure-linux-extensions,lizzha/azure-linux-extensions,soumyanishan/azure-linux-extensions,krkhan/azure-linux-extensions,oaastest/azure-linux-extensions,andyliuliming/azure-linux-extensions,Azure/azure-linux-extensions,v-zhongz/azure-linux-extensions