Skip to content

Commit

Permalink
Fix backup-volfile-server(s) in mount provider
Browse files Browse the repository at this point in the history
  • Loading branch information
vchung-nz committed Oct 10, 2016
1 parent c478a8d commit 0fb5b8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,6 +1,7 @@
# gluster cookbook CHANGELOG

## Unreleased
- **[PR #72](https://github.com/shortdudey123/chef-gluster/pull/72)** - Fix backup-volfile-server(s) in mount provider

## v5.0.2 (2016-09-14)
- **[PR #58](https://github.com/shortdudey123/chef-gluster/pull/58)** - Fix case statement syntax
Expand Down
4 changes: 2 additions & 2 deletions providers/mount.rb
Expand Up @@ -81,11 +81,11 @@ def basic_mount_options
end

def mount_options_for_backup_server
case new_resource.backup_server.class
case new_resource.backup_server
when String
',backupvolfile-server=' + new_resource.backup_server
when Array
',backupvolfile-server=' + new_resource.backup_server.join(',backupvolfile-server=')
',backup-volfile-servers=' + new_resource.backup_server.join(':')
end
end

Expand Down

0 comments on commit 0fb5b8c

Please sign in to comment.