update seperator regex in inifille
This commit is contained in:
@@ -54,7 +54,6 @@ class ceph (
|
||||
}
|
||||
resources {'ceph_conf':
|
||||
require => Exec['ceph-deploy init config'],
|
||||
key_val_separator => ' = ',
|
||||
}
|
||||
ceph_conf {
|
||||
'global/auth supported': value => $auth_supported;
|
||||
|
||||
@@ -6,13 +6,13 @@ module Util
|
||||
class IniFile
|
||||
|
||||
def section_regex
|
||||
/^\s*\[([\w\d\.\\\/\-\:]+)\]\s*$/
|
||||
/^\s*\[([\w\d\.\\\/\-\:]+)\]\s*$/
|
||||
end
|
||||
def setting_regex
|
||||
/^(\s*)([\w\d\.\\\/\-]+)(\s*=\s*)([\S\s]*\S)\s*$/
|
||||
/^(\s*)([\w\d\.\\\/\-\s]*[\w\d\.\\\/\-])([ \t]*=[ \t]*)([\S\s]*?)\s*$/
|
||||
end
|
||||
def commented_setting_regex
|
||||
/^(\s*)[#;]+(\s*)([\w\d\.\\\/\-]+)(\s*=\s*)([\S\s]*\S)\s*$/
|
||||
/^(\s*)[#;]+(\s*)([\w\d\.\\\/\-]+)([ \t]*=[ \t]*)([\S\s]*?)\s*$/
|
||||
end
|
||||
|
||||
def initialize(path, key_val_separator = ' = ')
|
||||
|
||||
Reference in New Issue
Block a user