From e6a4d3cc714ca30bab6efeea01f99eebe0968d6b Mon Sep 17 00:00:00 2001 From: Andre Merzky Date: Sun, 2 Feb 2014 01:00:07 +0100 Subject: [PATCH] address #37 --- .../plugin_overlay_provisioner_bigjob_pilot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/troy/plugins/overlay_provisioner/plugin_overlay_provisioner_bigjob_pilot.py b/troy/plugins/overlay_provisioner/plugin_overlay_provisioner_bigjob_pilot.py index 035a961..07ce368 100644 --- a/troy/plugins/overlay_provisioner/plugin_overlay_provisioner_bigjob_pilot.py +++ b/troy/plugins/overlay_provisioner/plugin_overlay_provisioner_bigjob_pilot.py @@ -95,7 +95,7 @@ def provision (self, overlay) : resource_url = saga.Url (troy_pilot.resource) userid = getpass.getuser() - home = os.environ['HOME'] + home = None queue = None walltime = 24 * 60 # 1 day as default @@ -112,6 +112,11 @@ def provision (self, overlay) : break + if not home : + troy._logger.error ("no home dir in config for bj on %s" % resource_url + +" - assume local $HOME (%s)" % os.environ['HOME']) + home = os.environ['HOME'] + pilot_descr.working_directory = "%s/troy_agents/" % home pilot_descr.queue = queue pilot_descr.wall_time = 300