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 32ec94a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -12,6 +12,7 @@
- **[PR #67](https://github.com/shortdudey123/chef-gluster/pull/67)** - Fix serverspec verification
- **[PR #68](https://github.com/shortdudey123/chef-gluster/pull/68)** - Add kitchen testing for gluster::client recipe
- **[PR #69](https://github.com/shortdudey123/chef-gluster/pull/69)** - Update yum_repository resource
- **[PR #72](https://github.com/shortdudey123/chef-gluster/pull/70)** - Fix backup-volfile-server(s) in mount provider

## v5.0.1 (2016-03-12)
- **[PR #52](https://github.com/shortdudey123/chef-gluster/pull/52)** - Correct the usage of the peer_names attribute
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 32ec94a

Please sign in to comment.