[#342] Remove try-catch from delete block
All checks were successful
DCO action / DCO (pull_request) Successful in 1m24s
All checks were successful
DCO action / DCO (pull_request) Successful in 1m24s
Signed-off-by: a.berezin <a.berezin@yadro.com>
This commit is contained in:
parent
dc5a9e7bb9
commit
6bdc93b4d9
1 changed files with 11 additions and 14 deletions
|
@ -181,20 +181,17 @@ class ContainerOperations(interfaces.ContainerInterface):
|
||||||
force: bool = False,
|
force: bool = False,
|
||||||
trace: bool = False,
|
trace: bool = False,
|
||||||
):
|
):
|
||||||
try:
|
return self.cli.container.delete(
|
||||||
return self.cli.container.delete(
|
rpc_endpoint=endpoint,
|
||||||
rpc_endpoint=endpoint,
|
cid=cid,
|
||||||
cid=cid,
|
address=address,
|
||||||
address=address,
|
await_mode=await_mode,
|
||||||
await_mode=await_mode,
|
session=session,
|
||||||
session=session,
|
ttl=ttl,
|
||||||
ttl=ttl,
|
xhdr=xhdr,
|
||||||
xhdr=xhdr,
|
force=force,
|
||||||
force=force,
|
trace=trace,
|
||||||
trace=trace,
|
).stdout
|
||||||
).stdout
|
|
||||||
except RuntimeError as e:
|
|
||||||
print(f"Error request:\n{e}")
|
|
||||||
|
|
||||||
@reporter.step("Get container")
|
@reporter.step("Get container")
|
||||||
def get(
|
def get(
|
||||||
|
|
Loading…
Reference in a new issue