Blame SOURCES/pcsd-fix-syntax-error-on-ruby-1.8.patch

15f218
From 96885f66dde45fd8edf2b916ce63bbc236cfe28a Mon Sep 17 00:00:00 2001
15f218
From: Tomas Jelinek <tojeline@redhat.com>
15f218
Date: Mon, 18 Jul 2016 15:03:42 +0200
15f218
Subject: [PATCH] pcsd: fix syntax error on ruby 1.8
15f218
15f218
---
15f218
 pcsd/remote.rb | 2 +-
15f218
 1 file changed, 1 insertion(+), 1 deletion(-)
15f218
15f218
diff --git a/pcsd/remote.rb b/pcsd/remote.rb
15f218
index 6a3a692..25fb74d 100644
15f218
--- a/pcsd/remote.rb
15f218
+++ b/pcsd/remote.rb
15f218
@@ -1558,7 +1558,7 @@ def remove_resource(params, request, auth_user)
15f218
       end
15f218
       cmd = [PCS, '-f', tmp_file.path, 'resource', 'disable']
15f218
       resource_list.each { |resource|
15f218
-        _, err, retval = run_cmd(user, *cmd, resource)
15f218
+        _, err, retval = run_cmd(user, *(cmd + [resource]))
15f218
         if retval != 0
15f218
           unless (
15f218
             err.join('').index('unable to find a resource') != -1 and
15f218
-- 
15f218
1.8.3.1
15f218