Skip to content
  • Iustin Pop's avatar
    Unify the instance creation code · d77490c5
    Iustin Pop authored
    
    
    Currently the AddInstance in gnt-instance and ImportInstance in
    gnt-backup duplicate all of their code except the actual opcode creation
    (the parameters to it). By moving this to cli.py (not optimal location,
    but we don't have another one), we can use a single copy of the code,
    and simply change based on the mode parameter the few different
    opcode parameters.
    
    Signed-off-by: default avatarIustin Pop <iustin@google.com>
    Reviewed-by: default avatarMichael Hanselmann <hansmi@google.com>
    d77490c5