Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A fix for on-tasks to be able to render workflow #541

Merged
merged 6 commits into from
Nov 3, 2017

Conversation

mtannous
Copy link
Contributor

@mtannous mtannous commented Nov 2, 2017

This is a fix for on-tasks to be able to render objects and array of objects...

Signed-off-by: Bala Balakumaran bala.balakumaran@dell.com

…objects.

Signed-off-by: Bala Balakumaran <bala.balakumaran@dell.com>
lib/task.js Outdated
}
}).join('');
});
mappedValues.forEach(function (element){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'element' is defined but never used.

lib/task.js Outdated
if(typeof type === 'string' || type instanceof String || type == null) {
isString = true;
} else {
isString = false

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

lib/task.js Outdated
var rendered = self.renderString(item.n, context, depth, 50);
return rendered;
var type = _.get(context, item.n);
if(typeof type === 'string' || type instanceof String || type == null) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Expected '===' and instead saw '=='.

lib/task.js Outdated
source.forEach(function (element) {
renderedValue.push(Hogan.parse(Hogan.scan(element)));
});
return renderedValue

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing semicolon.

mtannous and others added 4 commits November 2, 2017 14:50
Signed-off-by: Massarrah Tannous <massarrah.tannous@emc.com>
Signed-off-by: Bala Balakumaran <bala.balakumaran@dell.com>
…nto renderingFix

Signed-off-by: Massarrah Tannous <massarrah.tannous@emc.com>
@keedya
Copy link
Contributor

keedya commented Nov 3, 2017

@geoff-reid

@geoff-reid geoff-reid merged commit 6ddb2e0 into RackHD:master Nov 3, 2017
@mtannous mtannous deleted the renderingFix branch November 3, 2017 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants