Skip to content
This repository has been archived by the owner on Sep 23, 2020. It is now read-only.

Commit

Permalink
Fix crash when workloadtype isn't specified at cli
Browse files Browse the repository at this point in the history
  • Loading branch information
oldpatricka committed May 30, 2011
1 parent 81b4814 commit ee60e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/python/epumgmt/main/em_core_generategraph.py
Expand Up @@ -847,10 +847,11 @@ def _generate_controller(workloadtype, \
def generate_graph(p, c, m, run_name):
graphname = p.get_arg_or_none('graphname')
graphtype = p.get_arg_or_none('graphtype')
workloadtype = p.get_arg_or_none('workloadtype').lower()
workloadtype = p.get_arg_or_none('workloadtype')
if not workloadtype:
c.log.error('Expecting workloadtype to be specified.')
return
workloadtype = workloadtype.lower()

node_events = NodeEvents(p, c, m, run_name)
controller_events = ControllerEvents(p, c, m, run_name)
Expand Down

0 comments on commit ee60e2c

Please sign in to comment.