capturing patchHostgroup script for RK