Skip to content

Commit

Permalink
Merge pull request #964 from jackhaibo/openstack-fs
Browse files Browse the repository at this point in the history
Fix null pointer error.
  • Loading branch information
leonwanghui committed Jul 16, 2019
2 parents f789e41 + 0ccc02a commit 7a24e10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contrib/drivers/huawei/fusionstorage/fusionstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ func (d *Driver) Setup() error {
}

func (d *Driver) Unset() error {
if d.Client == nil {
return errors.New("cannot get client")
}
return d.Client.logout()
}

Expand Down

0 comments on commit 7a24e10

Please sign in to comment.