Skip to content

copy-from-vm traceback a message if host to copy from is down - need to write nice message instead #748

@galitf

Description

@galitf

lago copy-from-vm vm-el7 /root/etc/hosts gal
Error occured, aborting
Traceback (most recent call last):
File "/home/grosenth/projects/lago/lago/cmd.py", line 969, in main
cli_plugins[args.verb].do_run(args)
File "/home/grosenth/projects/lago/lago/plugins/cli.py", line 184, in do_run
self._do_run(**vars(args))
File "/home/grosenth/projects/lago/lago/utils.py", line 505, in wrapper
return func(*args, **kwargs)
File "/home/grosenth/projects/lago/lago/utils.py", line 516, in wrapper
return func(*args, prefix=prefix, **kwargs)
File "/home/grosenth/projects/lago/lago/cmd.py", line 684, in do_copy_from_vm
'Host %s is not "running", but "%s"' % (host.name(), host.state())
RuntimeError: Host vm-el7 is not "running", but "down"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions