From 4d60b8f146c479010104a5f018eb97cffc2c728e Mon Sep 17 00:00:00 2001 From: Matt Miller Date: Wed, 21 Feb 2007 03:10:48 +0000 Subject: [PATCH] fixes #19, don't skip if overwrite is false git-svn-id: file:///home/svn/framework3/trunk@4449 4d416f70-5f16-0410-b530-b9f4589650da --- lib/msf/core/data_store.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/data_store.rb b/lib/msf/core/data_store.rb index 430feef919..70892ea39e 100644 --- a/lib/msf/core/data_store.rb +++ b/lib/msf/core/data_store.rb @@ -60,7 +60,7 @@ class DataStore < Hash options.each_option { |name, opt| # If there's already a value defined for this option, then skip it # and don't import it. - next if self[name] + next if self[name] and overwrite == false # If the option has a default value, import it, but only if the # datastore doesn't already have a value set for it.