Assert pid and role using if instead of assert statement
By pass migration if there is only one place