• Iustin Pop's avatar
    Fix uses of OpPrereqError without code info · 2cfbc784
    Iustin Pop authored
    
    
    A while back, we did cleanup the code and ensured (manually) that use
    of OpPrereqError includes an errors.ECODE_* field as second
    argument. Since we cannot automate the check for this, it turns out
    that more and more such usage has crept over the years, including in
    the master code (the use on the CLI side is not as important).
    
    Note that this also uncovered a few errors in ovf.py where the errors
    messages were wrongly constructed.
    
    Still looking for a way to automate this check…
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
    2cfbc784
cmdlib.py 551 KB