Skip to content

Commit

Permalink
Merge pull request #82 from zyoung51/feature/redfish-one
Browse files Browse the repository at this point in the history
modify redfish discovery to optionally catalog EMC elements
  • Loading branch information
jlongever committed Apr 7, 2016
2 parents 10063d0 + d3278d6 commit cf76ec6
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion lib/graphs/redfish-discovery-graph.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,42 @@ module.exports = {
options: {
defaults: {
uri: null
},
'when-catalog-emc' : {
autoCatalogEmc: 'false',
when: '{{options.autoCatalogEmc}}',
}
},
tasks: [
{
'x-description': 'Enumerate the redfish endpoint',
label: 'redfish-client-discovery',
taskName: 'Task.Redfish.Discovery'
taskName: 'Task.Redfish.Discovery',
},
{
'x-description': 'Indicate to downstream tasks if cataloging should be done',
label: 'when-catalog-emc',
taskName: 'Task.Evaluate.Condition',
waitOn: {
'redfish-client-discovery': 'succeeded'
}
},
{
'x-description': 'Perform cataloging of the EMC endpoints placed into the graph context',
label: 'emc-redfish-catalog',
taskName: 'Task.Emc.Redfish.Catalog',
waitOn: {
'when-catalog-emc': 'succeeded'
},
ignoreFailure: true
},
{
'x-description': 'Set the final graph state to success when cataloging is skipped',
label: 'noop',
taskName: 'Task.noop',
waitOn: {
'when-catalog-emc': 'failed'
}
}
]
};

0 comments on commit cf76ec6

Please sign in to comment.