From: Loic Baron Date: Fri, 28 Sep 2018 12:30:56 +0000 (+0200) Subject: Handle C-BAS hrn format with "\" X-Git-Tag: sfa-4.0-2~10 X-Git-Url: http://git.onelab.eu/?p=sfa.git;a=commitdiff_plain;h=c9a9d0d6cc1a372fc34011e27883c58c244a9824 Handle C-BAS hrn format with "\" --- diff --git a/sfa/iotlab/iotlabdriver.py b/sfa/iotlab/iotlabdriver.py index efbe4b6b..a820fc69 100644 --- a/sfa/iotlab/iotlabdriver.py +++ b/sfa/iotlab/iotlabdriver.py @@ -194,6 +194,7 @@ class IotLabDriver(Driver): # parse rspec rspec = RSpec(rspec_string) + logger.warning(options) caller_hrn = options.get('actual_caller_hrn', []) geni_users = options.get('geni_users', []) caller_user = [user for user in geni_users if @@ -206,11 +207,12 @@ class IotLabDriver(Driver): if login: nodes_list, start_time, duration = \ self._get_experiment(rspec) + # [0-9A-Za-z_] with onelab.inria.test_iotlab + exp_name = '_'.join((xrn.hrn.replace('\\.','')).split('.')) logger.warning("iotlabdriver allocate submit OAR job :" " %s %s %s %s" % - (xrn.hrn, start_time, duration, nodes_list)) - # [0-9A-Za-z_] with onelab.inria.test_iotlab - exp_name = '_'.join((xrn.hrn).split('.')) + (exp_name, start_time, duration, nodes_list)) + # submit OAR job ret = self.shell.reserve_nodes(login, exp_name,