diff options
-rw-r--r-- | lib/chef/chef_fs/chef_fs_data_store.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/chef_fs/chef_fs_data_store.rb b/lib/chef/chef_fs/chef_fs_data_store.rb index 0d4caad743..6bb884c59a 100644 --- a/lib/chef/chef_fs/chef_fs_data_store.rb +++ b/lib/chef/chef_fs/chef_fs_data_store.rb @@ -761,7 +761,7 @@ class Chef result = Chef::ChefFS::FileSystem.resolve_path(chef_fs, path.join("/")) if result.exists? result - elsif create + elsif create || path.size == 1 get_dir(path[0..-2], create).create_child(result.name, nil) else raise ChefZero::DataStore::DataNotFoundError.new(path) |