Device info does not work properly
When using the -h
option to provide the TANGO_HOST, device info
raises an exception.
I modified device::get_info()
in src/tango_api/device.cpp
to print the full exception.
$ TANGO_HOST=aculab-db.esrf.fr:10000 ./mj dev info tango/admin/l-acutest6
Class name Starter
DS full name Starter/l-acutest6
$ ./mj -h aculab-db.esrf.fr:10000 dev info tango/admin/l-acutest6
Class name Origin: DataBase::GetDeviceInfo()
Severity: 1
Reason: DB_DeviceNotDefined
Description: device tango://aculab-db.esrf.fr:10000/tango/admin/l-acutest6 not defined in the database !
Origin: virtual CORBA::Any_var Tango::Connection::command_inout(const std::string&, const CORBA::Any&) at (/home/guillaume/bin/aur/tango-cpp/src/cppTango-9.5.0/src/client/devapi_base.cpp:1531)
Severity: 1
Reason: API_CommandFailed
Description: Failed to execute command_inout on device sys/database/lab, command DbGetDeviceInfo
The device tango://aculab-db.esrf.fr:10000/tango/admin/l-acutest6 was not found in the control system.