Fixing #9694 master_uri is not updated when master_ip is updated