Skip to content

Commit 2a492fb

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "Remove leading empty line from server create with --wait"
2 parents ad2a511 + edb1788 commit 2a492fb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

openstackclient/compute/v2/server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2129,13 +2129,11 @@ def _match_image(image_api, wanted_properties):
21292129
f.close()
21302130

21312131
if parsed_args.wait:
2132-
if utils.wait_for_status(
2132+
if not utils.wait_for_status(
21332133
compute_client.get_server,
21342134
server.id,
21352135
callback=_show_progress,
21362136
):
2137-
self.app.stdout.write('\n')
2138-
else:
21392137
msg = _('Error creating server: %s') % parsed_args.server_name
21402138
raise exceptions.CommandError(msg)
21412139

0 commit comments

Comments
 (0)