"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:

And remove this from session dispose:

Environment

None

Pull Requests

None

Status

Assignee

Unassigned

Reporter

Joao Reis

Labels

None

Reproduced in

3.12.0

PM Priority

None

Fix versions

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

External issue ID

None

Doc Impact

None

Reviewer

None

Pull Request

None

Epic Link

None

Sprint

Size

None

Affects versions

Priority

Major
Configure