taurus-org / taurus

Moved to https://gitlab.com/taurus-org/taurus
http://taurus-scada.org
43 stars 46 forks source link

TangoDeviceNameValidator does not get FQDN full name if DB is passed as PQDN #1110

Open reszelaz opened 4 years ago

reszelaz commented 4 years ago

Not sure if this is a bug or not but I get:

In [1]: from taurus.core.tango.tangovalidator import TangoDeviceNameValidator

In [2]: v = TangoDeviceNameValidator()

In [3]: v.getNames("a/b/c")
Out[3]: ('tango://pc255.cells.es:10000/a/b/c', 'a/b/c', 'a/b/c')

In [4]: v.getNames("//pc255:10000/a/b/c")
Out[4]: ('tango://pc255:10000/a/b/c', '//pc255:10000/a/b/c', 'a/b/c')

Note, I use /etc/tangorc with TANGO_HOST=pc255.cells.es:10000.

cpascual commented 4 years ago

I would have to check if there is some reason for this, but on first impression I 'd call it a bug