def __init__(self):
     super(PandaRequirements,self).__init__()
     from pandatools import PsubUtils
     import sys
     sys.stdout = open('/dev/null','w')
     sys.stderr = open('/dev/null','w')
     self.cloud = PsubUtils.getCloudUsingFQAN(None,False)
     sys.stdout = sys.__stdout__
     sys.stderr = sys.__stderr__
     if not self.cloud:
         import random
         from pandatools import Client
         clouds = Client.PandaClouds.keys()
         clouds.remove('OSG')
         self.cloud = random.choice(clouds)
Exemple #2
0
 def __init__(self):
     super(PandaRequirements, self).__init__()
     from pandatools import PsubUtils
     import sys
     sys.stdout = open('/dev/null', 'w')
     sys.stderr = open('/dev/null', 'w')
     self.cloud = PsubUtils.getCloudUsingFQAN(None, False)
     sys.stdout = sys.__stdout__
     sys.stderr = sys.__stderr__
     if not self.cloud:
         import random
         from pandatools import Client
         clouds = Client.PandaClouds.keys()
         clouds.remove('OSG')
         self.cloud = random.choice(clouds)
Exemple #3
0
    def __init__(self):
        super(JediRequirements,self).__init__()
        from pandatools import PsubUtils
        import sys
        sys.stdout = open('/dev/null','w')
        sys.stderr = open('/dev/null','w')

        # cache the call to getCloudUsingFQAN as otherwise it can be slow
        if JediRequirements._defcloud == '':
            JediRequirements._defcloud = PsubUtils.getCloudUsingFQAN(None,False)
        self.cloud = self._defcloud

        sys.stdout = sys.__stdout__
        sys.stderr = sys.__stderr__
        if not self.cloud:
            import random
            from pandatools import Client
            clouds = Client.PandaClouds.keys()
            clouds.remove('OSG')
            self.cloud = random.choice(clouds)
    def __init__(self):
        super(JediRequirements, self).__init__()
        from pandatools import PsubUtils
        import sys
        sys.stdout = open('/dev/null', 'w')
        sys.stderr = open('/dev/null', 'w')

        # cache the call to getCloudUsingFQAN as otherwise it can be slow
        if JediRequirements._defcloud == '':
            JediRequirements._defcloud = PsubUtils.getCloudUsingFQAN(
                None, False)
        self.cloud = self._defcloud

        sys.stdout = sys.__stdout__
        sys.stderr = sys.__stderr__
        if not self.cloud:
            import random
            from pandatools import Client
            clouds = Client.PandaClouds.keys()
            clouds.remove('OSG')
            self.cloud = random.choice(clouds)