"Local datacenter is not specified" message is logged if user specifies it with the default execution profile
Description
The warning introduced in is being logged if the user specifies the default LBP via execution profiles (by configuring the default profile). This is due to the fact that we are initializing and disposing the policies created by default in the Policies class even though they will never be used when different ones are set on the default profile.
We should fix this by removing this duplication (maybe setting Policies properties to the policies that were set on the default profile?) but a quick fix is also possible if we remove this from session init:
The warning introduced in is being logged if the user specifies the default LBP via execution profiles (by configuring the
default
profile). This is due to the fact that we are initializing and disposing the policies created by default in thePolicies
class even though they will never be used when different ones are set on thedefault
profile.We should fix this by removing this duplication (maybe setting
Policies
properties to the policies that were set on thedefault
profile?) but a quick fix is also possible if we remove this from session init:And remove this from session dispose: