Undo GENICloud-specific change to PL SM
[sfa.git] / sfa / managers / slice_manager_pl.py
index 0ed8f48..c38722e 100644 (file)
@@ -128,6 +128,7 @@ def ListResources(api, creds, options, call_id):
         # unless the caller is the aggregate's SM
         if caller_hrn == aggregate and aggregate != api.hrn:
             continue
+
         # get the rspec from the aggregate
         server = api.aggregates[aggregate]
         #threads.run(server.ListResources, credentials, my_opts, call_id)
@@ -158,7 +159,7 @@ def CreateSliver(api, xrn, creds, rspec_str, users, call_id):
         try:
             # Need to call GetVersion at an aggregate to determine the supported 
             # rspec type/format beofre calling CreateSliver at an Aggregate. 
-            server_version = _get_server_version(api, server)    
+            server_version = api.get_cached_server_version(server)    
             if 'sfa' not in aggregate_version and 'geni_api' in aggregate_version:
                 # sfa aggregtes support both sfa and pg rspecs, no need to convert
                 # if aggregate supports sfa rspecs. otherwise convert to pg rspec