Fix for VINI aggregate
authorAndy Bavier <acb@cs.princeton.edu>
Mon, 12 Oct 2009 15:58:53 +0000 (15:58 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Mon, 12 Oct 2009 15:58:53 +0000 (15:58 +0000)
sfa/plc/api.py

index a1e702f..6423f1f 100644 (file)
@@ -119,7 +119,8 @@ class GeniAPI:
         self.credential = None
         
         # Initialize the PLC shell only if SFA wraps a myPLC
-        if (self.config.get_aggregate_rspec_type() == 'pl'):
+        rspec_type = self.config.get_aggregate_rspec_type()
+        if (rspec_type == 'pl' or rspec_type == 'vini'):
             self.plshell = self.getPLCShell()
             self.plshell_version = self.getPLCShellVersion()