opendxl / opendxl-epo-client-python

McAfee ePolicy Orchestrator (ePO) client library for use with the OpenDXL Python Client
Apache License 2.0
6 stars 5 forks source link

Look for remotes service before commands service #9

Closed jbarlow-mcafee closed 6 years ago

jbarlow-mcafee commented 6 years ago

Previously, the client would attempt to use an ePO "commands" service if both a "remote" and "commands" service were available on the fabric. Since no commands are authorized by default, a user who has a "remote" service on the fabric would encounter client failures after upgrading the ePO server to DXL 5 extensions until authorization is configured for the commands service.

This commit changes the logic to look for and use a "remote" service first if both a "remote" and "commands" service are available. This allows for calls to the remote service to continue to function properly for backward compatibility on initial upgrade of the ePO server to DXL 5 extensions.