- Unbreak for Ruby 1.9
PR: 162763 Submitted by: Jan Beich <jbeich@tormail.net> Approved by: maintainer timeout
This commit is contained in:
parent
f4c4d96943
commit
735ca63089
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=289888
1 changed files with 18 additions and 0 deletions
|
@ -12,3 +12,21 @@
|
|||
end
|
||||
|
||||
private
|
||||
@@ -175,7 +179,7 @@ private
|
||||
|
||||
end
|
||||
|
||||
-class Config
|
||||
+class ZConfig
|
||||
attr_reader :snapshot_prefix, :filesystems, :pools
|
||||
|
||||
def initialize(value)
|
||||
@@ -194,7 +198,7 @@ class Config
|
||||
|
||||
config_yaml = File.open(CONFIG_FILE_NAME).read(CONFIG_SIZE_MAX)
|
||||
die "Config file too long" if config_yaml.nil?
|
||||
-config = Config.new(YAML::load(config_yaml))
|
||||
+config = ZConfig.new(YAML::load(config_yaml))
|
||||
|
||||
now_minutes = Time.now.to_i / 60
|
||||
|
||||
|
|
Loading…
Reference in a new issue