Skip to content

Commit

Permalink
fix error string
Browse files Browse the repository at this point in the history
  • Loading branch information
grybak-arista committed Nov 13, 2015
1 parent d4f01c2 commit 30f5ea6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyeapi/api/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def command_builder(self, string, value=None, default=None, disable=None):
elif value:
return '%s %s' % (string, value)
else:
raise ValueError("XXX no value received '%s'" % value)
return 'no %s' % string
raise ValueError("abstract.command_builder: No value "
"received '%s'" % value)

def configure_interface(self, name, commands):
"""Configures the specified interface with the commands
Expand Down

0 comments on commit 30f5ea6

Please sign in to comment.