From 09c5b90c57b89b8a04167c66baebbe4d4221b944 Mon Sep 17 00:00:00 2001 From: Jarrod Johnon Date: Tue, 13 Jan 2015 08:59:48 -0500 Subject: [PATCH] Fix internal error on boot device mistake Boot device not being str resulted in internal error rather than the intended message. Correct by forcing it to string representation. --- confluent_server/confluent/messages.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/confluent_server/confluent/messages.py b/confluent_server/confluent/messages.py index e107146c..206f4edc 100644 --- a/confluent_server/confluent/messages.py +++ b/confluent_server/confluent/messages.py @@ -393,9 +393,11 @@ class BootDevice(ConfluentChoiceMessage): def __init__(self, node, device, bootmode='unspecified'): if device not in self.valid_values: - raise Exception("Invalid boot device argument passed in:" + device) + raise Exception("Invalid boot device argument passed in:" + + repr(device)) if bootmode not in self.valid_bootmodes: - raise Exception("Invalid boot mode argument passed in:" + bootmode) + raise Exception("Invalid boot mode argument passed in:" + + repr(bootmode)) self.kvpairs = { node: { 'nextdevice': {'value': device},