Skip to content

Commit 83ab226

Browse files
committed
Avoid setting force/no-wait automatically
1 parent ea77684 commit 83ab226

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

juju/application.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,7 @@ async def destroy(self, destroy_storage=False, force=False, no_wait=False):
227227
"""
228228

229229
if no_wait and not force:
230-
log.warning("Invalid parameters. Automatically setting the --force parameter to True.")
231-
force = True
230+
raise JujuError("--no-wait without --force is not valid")
232231

233232
app_facade = self._facade()
234233

0 commit comments

Comments
 (0)