Update the test for OMF
[nepi.git] / src / nepi / resources / omf / application.py
index b6d8d13..55ca910 100644 (file)
@@ -41,7 +41,7 @@ class OMFApplication(OMFResource):
 
     """
     _rtype = "OMFApplication"
-    _authorized_connections = ["OMFNode"]
+    _authorized_connections = ["OMFNode", "WilabtSfaNode"]
 
     @classmethod
     def _register_attributes(cls):
@@ -335,7 +335,7 @@ class OMFApplication(OMFResource):
 
         """
         if self._omf_api:
-            if self.get('version') == "6":
+            if self.get('version') == "6" and self._topic_app:
                 if not self.release_id:
                     self.release_id = os.urandom(16).encode('hex')
                     self._omf_api.frcp_release( self.release_id, self.node.get('hostname'),self._topic_app, res_id=self._topic_app)