Skip to content

Commit

Permalink
Handle errors in QueryVirtualDiskUUid function (#548)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrarshivani authored and dougm committed Jul 18, 2016
1 parent e3c3cd0 commit f8199eb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion object/virtual_disk_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,13 @@ func (m VirtualDiskManager) QueryVirtualDiskUuid(ctx context.Context, name strin
}

res, err := methods.QueryVirtualDiskUuid(ctx, m.c, &req)
if err != nil {
return "", err
}

if res == nil {
return "", nil
}

return res.Returnval, err
return res.Returnval, nil
}

0 comments on commit f8199eb

Please sign in to comment.