Commit a1624f8f authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Fix bug when adding a new backend

Fix wrong reporting messages when adding a new backend.
parent 6322cbfd
......@@ -138,11 +138,13 @@ class Command(BaseCommand):
if result[0] != "success":
self.stdout.write('\nError Creating Network %s: %s\n' %\
(net.backend_id, result[1]))
self.stdout.write('Successfully created Network: %s\n' %
net.backend_id)
else:
self.stdout.write('Successfully created Network: %s\n' %
net.backend_id)
result = connect_network_synced(network=net, backend=backend)
if result[0] != "success":
self.stdout.write('\nError Connecting Network %s: %s\n' %\
(net.backend_id, result[1]))
self.stdout.write('Successfully connected Network: %s\n' %
net.backend_id)
else:
self.stdout.write('Successfully connected Network: %s\n' %
net.backend_id)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment