Collapse initial payload to a single stanza instead of a list if only one stanza is found.

This commit is contained in:
Lance Stout
2012-04-30 11:16:10 -07:00
parent ad5b61de50
commit a9acff5294
2 changed files with 4 additions and 1 deletions

View File

@@ -35,7 +35,7 @@ class TestAdHocCommands(SleekTest):
logging.debug(initial)
new_payload = TestPayload()
if initial:
new_payload['bar'] = 'Received: %s' % initial[0]['bar']
new_payload['bar'] = 'Received: %s' % initial['bar']
else:
new_payload['bar'] = 'Failed'