Closed bkeryan closed 1 month ago
In addition to @nick-beer's suggestions, I think it would be reasonable to emit a DeprecationWarning:
if version:
warnings.warn("The 'version' parameter is deprecated. Specify the version in the .serviceconfig file instead.", DeprecationWarning)
Bug Report
If the service specifies the version number in code but not in the serviceconfig file, the discovery service assumes that the service is unversioned and assigns it a default version number. If this doesn't match, calling the measurement service from TestStand will fail.
From @nick-beer
See this PR discussion for more details: https://github.com/ni/measurement-plugin-python/pull/907#discussion_r1769231913
AB#2863530