From 2055e3e8be09e0892a7d4efcc1354a189ef9c770 Mon Sep 17 00:00:00 2001 From: Matthias Crauwels Date: Tue, 7 Feb 2017 15:56:16 +0100 Subject: [PATCH] renamed mirror_flagOUT to mirror_flag_out --- .../provider/proxy_mysql_query_rule/proxysql.rb | 12 ++++++------ lib/puppet/type/proxy_mysql_query_rule.rb | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/puppet/provider/proxy_mysql_query_rule/proxysql.rb b/lib/puppet/provider/proxy_mysql_query_rule/proxysql.rb index d3632753..618a734f 100644 --- a/lib/puppet/provider/proxy_mysql_query_rule/proxysql.rb +++ b/lib/puppet/provider/proxy_mysql_query_rule/proxysql.rb @@ -24,7 +24,7 @@ def self.instances @client_addr, @proxy_addr, @proxy_port, @destination_hostgroup, @digest, @match_digest, @match_pattern, @negate_match_pattern, @replace_pattern, @cache_ttl, @reconnect, @timeout, @retries, @delay, @error_msg, @log, @comment, - @mirror_flagOUT, @mirror_hostgroup = mysql([defaults_file, "-NBe", query].compact).split(/\s/) + @mirror_flag_out, @mirror_hostgroup = mysql([defaults_file, "-NBe", query].compact).split(/\s/) name = "mysql_query_rule-#{rule_id}" instances << new( @@ -54,7 +54,7 @@ def self.instances :error_msg => @error_msg, :log => @log, :comment => @comment, - :mirror_flagOUT => @mirror_flagOUT, + :mirror_flag_out => @mirror_flag_out, :mirror_hostgroup => @mirror_hostgroup ) end @@ -98,7 +98,7 @@ def create error_msg = make_sql_value(@resource.value(:error_msg) || nil) log = make_sql_value(@resource.value(:log) || nil) comment = make_sql_value(@resource.value(:comment) || nil) - mirror_flagOUT = make_sql_value(@resource.value(:mirror_flagOUT) || nil) + mirror_flag_out = make_sql_value(@resource.value(:mirror_flag_out) || nil) mirror_hostgroup = make_sql_value(@resource.value(:mirror_hostgroup) || nil) query = "INSERT INTO `mysql_query_rules` (" @@ -111,7 +111,7 @@ def create query << "#{client_addr}, #{proxy_addr}, #{proxy_port}, #{destination_hostgroup}, " query << "#{digest}, #{match_digest}, #{match_pattern}, #{negate_match_pattern}, #{replace_pattern}, " query << "#{cache_ttl}, #{reconnect}, #{timeout}, #{retries}, #{delay}, #{error_msg}, #{log}, #{comment}, " - query << "#{mirror_flagOUT}, #{mirror_hostgroup})" + query << "#{mirror_flag_out}, #{mirror_hostgroup})" mysql([defaults_file, '-e', query].compact) @property_hash[:ensure] = :present @@ -267,8 +267,8 @@ def comment=(value) @property_flush[:comment] = value end - def mirror_flagOUT=(value) - @property_flush[:mirror_flagOUT] = value + def mirror_flag_out=(value) + @property_flush[:mirror_flag_out] = value end def mirror_hostgroup=(value) diff --git a/lib/puppet/type/proxy_mysql_query_rule.rb b/lib/puppet/type/proxy_mysql_query_rule.rb index 7bb255b0..9c071fa2 100644 --- a/lib/puppet/type/proxy_mysql_query_rule.rb +++ b/lib/puppet/type/proxy_mysql_query_rule.rb @@ -152,7 +152,7 @@ newvalue(/\d+/) end - newproperty(:mirror_flagOUT) do + newproperty(:mirror_flag_out) do desc 'see https://github.com/sysown/proxysql/blob/master/doc/mirroring.md' newvalue(/\d+/) end