You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The python NGAS archive client application cannot use the --servers command line option value. At line 90 in ngamsPClient.py an exception is raised when the servers and host/port command line options are set. As the host and port command line values are assigned default values this means an exception will always be raised when the --servers is used.
The simple solution would be to remove the default values for the host/port command line options. Otherwise grant the servers command line option precedence when it is set.
The text was updated successfully, but these errors were encountered:
The ClientWrapper class in the fs_monitor module was always creating an
ngamsPClient object with host, port and servers, although they are
mutually exclusive arguments (host/port and servers). This was only
triggered when users specified the --servers flag on the
ngamsArchiveClient utility.
This commit fixes this situation, and adds a new unit test to ensure the
--servers flag continues working as expected.
This addresses #38.
Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
Thanks @smclay for reporting this. A fix has now been merged to the master branch. A new unit test ensures the --servers flag can be used successfully.
The python NGAS archive client application cannot use the --servers command line option value. At line 90 in ngamsPClient.py an exception is raised when the servers and host/port command line options are set. As the host and port command line values are assigned default values this means an exception will always be raised when the --servers is used.
The simple solution would be to remove the default values for the host/port command line options. Otherwise grant the servers command line option precedence when it is set.
The text was updated successfully, but these errors were encountered: