Don't output json_class with the config json
This commit is contained in:
parent
5ae19f4782
commit
f37778c848
|
@ -48,8 +48,7 @@ module Vagrant
|
||||||
# the JSON is parsed back, it can be loaded back into the proper class.
|
# the JSON is parsed back, it can be loaded back into the proper class.
|
||||||
# See {json_create}.
|
# See {json_create}.
|
||||||
def to_json(*a)
|
def to_json(*a)
|
||||||
result = { 'json_class' => self.class.name }
|
instance_variables_hash.to_json(*a)
|
||||||
result.merge(instance_variables_hash).to_json(*a)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns the instance variables as a hash of key-value pairs.
|
# Returns the instance variables as a hash of key-value pairs.
|
||||||
|
|
Loading…
Reference in New Issue