lib/brocade/vtmquirksmanager.rb
# If the private key is not the full key, then strip it out of the JSON, 
# we don't want to hose the private key by overwriting it with its checksum
If the private key is not the full key, then strip it out of the JSON,
we don't want to hose the private key by overwriting it with its checksum
If the private key is not the full key then strip it out of the JSON we don ' t want to hose the private key by overwriting it with its checksum
def stripHashValue(uri, json)
			hash = JSON.parse(json)
			if ( ! hash["properties"]["basic"]["private"].start_with?("-----BEGIN") )
				hash["properties"]["basic"].delete("private")
				return JSON.generate(hash)
			else
				return json
			end
		end
def stripHashValue ( uri , json ) hash = JSON . parse ( json ) if ( ! hash [ "properties" ] [ "basic" ] [ "private" ] . start_with? ( "-----BEGIN" ) ) hash [ "properties" ] [ "basic" ] . delete ( "private" ) return JSON . generate ( hash ) else return json end end
If the private key is not the full key, then strip it out of the JSON,
we don't want to hose the private key by overwriting it with its checksum
If the private key is not the full key then strip it out of the JSON we don ' t want to hose the private key by overwriting it with its checksum
uri
<not_specific>
json
<not_specific>