There are some comments about this part: " # Allow re-applying the same configuration (e.g. on configuration updates)."
It allow attach the same configuration to a attached instance. So I think use a if and a else is fine, just consider two conditions: 1.The instance has attached a different configuration. 2. All of the rest conditions.
There are some comments about this part: " # Allow re-applying the same configuration (e.g. on configuration updates)."
It allow attach the same configuration to a attached instance. So I think use a if and a else is fine, just consider two conditions: 1.The instance has attached a different configuration. 2. All of the rest conditions.