anchor.diff:      'cloud' => {}
     }
   
  -  plugin = nil
     cloud_params = params['cloud']
     if_p('aws.access_key_id', 'aws.secret_access_key', 'aws.region') do |access_key_id, secret_access_key, region| 
  -    plugin = 'aws'
       cloud_params['plugin'] = 'aws'
       cloud_params['aws'] = {
         'access_key_id' =>  access_key_id,
  
positive.code:       cloud_params['openstack']['endpoint_type'] = endpoint_type
      end
      if_p('openstack.connection_options') do |connection_options|
        cloud_params['openstack']['connection_options'] = JSON.generate(connection_options)
      end
    end
  
    raise 'Could not find cloud plugin' if plugin.nil?
  
    JSON.dump(params)
  %>
  
negative.code:   end
  
    if_p('openstack.auth_url', 'openstack.username', 'openstack.api_key', 'openstack.tenant') do |auth_url, username, api_key, tenant|
      cloud_params['plugin'] = 'openstack'
      cloud_params['openstack'] = {
        'auth_url' =>  auth_url,
  