Prechádzať zdrojové kódy

HUE-5069 Create new deployment dir when imported doc points deleted one

krish 9 rokov pred
rodič
commit
42f696c

+ 2 - 2
desktop/libs/liboozie/src/liboozie/submission2.py

@@ -308,8 +308,8 @@ STORED AS TEXTFILE %s""" % (self.properties.get('send_result_path'), '\n\n\n'.jo
     create_directories(self.fs)
 
     # Check if job owner owns the deployment directory.
-    has_deployment_dir_access = True
-    if self.job.deployment_dir:
+    has_deployment_dir_access = False
+    if self.job.deployment_dir and self.fs.exists(self.job.deployment_dir):
       statbuf = self.fs.stats(self.job.deployment_dir)
       has_deployment_dir_access = statbuf and (statbuf.user == self.job.user.username)