Fixed command failure if one of a list of targets does not exist
This commit is contained in:
parent
9820d28438
commit
9250cb6446
1 changed files with 2 additions and 0 deletions
|
|
@ -344,6 +344,8 @@ def cmd_cpattr(command):
|
|||
# Does target exist?
|
||||
if not tar_obj:
|
||||
session.msg("Target object does not exist: " + tar_string)
|
||||
# Continue if target does not exist, but give error on this item
|
||||
continue
|
||||
|
||||
# If target attribute is not given, use source_attr_string for name
|
||||
if tar_attr_string == '':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue