Skip to content

Commit

Permalink
HUE-2124 [oozie] HDFS Deployment directory is missing "slash" symbol
Browse files Browse the repository at this point in the history
Added leading slash on workflow creation
  • Loading branch information
enricoberti committed Jun 6, 2014
1 parent 916722c commit 4b4f63f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/oozie/src/oozie/templates/utils.inc.mako
Original file line number Diff line number Diff line change
Expand Up @@ -390,8 +390,9 @@
}
function handleChoice(filePath) {
if (filePath.indexOf("${ workflow.deployment_dir }") > -1) {
filePath = filePath.substring("${ workflow.deployment_dir }".length + 1);
var _deployDir = $.trim("${ workflow.deployment_dir }");
if (_deployDir != "" && filePath.indexOf(_deployDir) > -1) {
filePath = filePath.substring(_deployDir.length + 1);
if (filePath == "") {
filePath = "./";
}
Expand Down

0 comments on commit 4b4f63f

Please sign in to comment.