I need to rename hundreds (perhaps thousands) of devices to use
FQDNs as their device IDs.  I don't seem to be able to do this via 
zendmd/python:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/opt/zenoss/Products/ZenRelations/RelCopySupport.py", line 57, in 
manage_renameObject
    self._verifyObjectPaste(ob)
  File "/opt/zenoss/Products/ZenRelations/RelCopySupport.py", line 117, in 
_verifyObjectPaste
    CopyContainer._verifyObjectPaste(self,object,validate_src)
  File "opt/zenoss/lib/python/OFS/CopySupport.py", line 443, in 
_verifyObjectPaste
Copy Error: 
<HTML>
<HEAD>
<TITLE>Not Supported</TITLE>
</HEAD>
[snip]
  <CENTER>
  The object <em>labshop-3620-1</em> does not support this operation.
  </CENTER>
 
Same failure in 2.0.4 as in the trunk.

from _verifyObjectPaste:

        if not hasattr(object, 'meta_type'):
            raise CopyError, MessageDialog(
                  title   = 'Not Supported',
                  message = ('The object <em>%s</em> does not support this' \
                             ' operation' % escape(absattr(object.id))),
                  action  = 'manage_main')

well, 

AttributeError: hasattr
>>> hasattr(dev, 'meta_type')
True
 
And I can rename it from the GUI.  Am I missing some kind of context not 
present 
in zendmd?


-- 
David Carmean                                           Network Appliance, Inc
Infosystems Architect,                                  495 E. Java Drive
Java (Sunnyvale) Engineering Lab Services               Sunnyvale, CA  94089
_______________________________________________
zenoss-users mailing list
[email protected]
http://lists.zenoss.org/mailman/listinfo/zenoss-users

Reply via email to