def build_pillar_data(options):
 pillar = {'test_transport': options.test_transport, 'cloud_only': options.cloud_only, 'with_coverage': (options.test_without_coverage is False)}
 if (options.test_git_commit is not None):
  pillar['test_git_commit'] = options.test_git_commit
 if (options.test_git_url is not None):
  pillar['test_git_url'] = options.test_git_url
 if (options.bootstrap_salt_url is not None):
  pillar['bootstrap_salt_url'] = options.bootstrap_salt_url
 if (options.bootstrap_salt_commit is not None):
  pillar['bootstrap_salt_commit'] = options.bootstrap_salt_commit
 if options.package_source_dir:
  pillar['package_source_dir'] = options.package_source_dir
 if options.package_build_dir:
  pillar['package_build_dir'] = options.package_build_dir
 if options.package_artifact_dir:
  pillar['package_artifact_dir'] = options.package_artifact_dir
 if options.pillar:
  pillar.update(dict(options.pillar))
 return yaml.dump(pillar, default_flow_style=True, indent=0, width=sys.maxint).rstrip()

def build_pillar_data ( options ) : pillar = { 'test_transport' : options . test_transport , 'cloud_only' : options . cloud_only , 'with_coverage' : ( options . test_without_coverage is False ) } if ( options . test_git_commit is not None ) : pillar [ 'test_git_commit' ] = options . test_git_commit if ( options . test_git_url is not None ) : pillar [ 'test_git_url' ] = options . test_git_url if ( options . bootstrap_salt_url is not None ) : pillar [ 'bootstrap_salt_url' ] = options . bootstrap_salt_url if ( options . bootstrap_salt_commit is not None ) : pillar [ 'bootstrap_salt_commit' ] = options . bootstrap_salt_commit if options . package_source_dir : pillar [ 'package_source_dir' ] = options . package_source_dir if options . package_build_dir : pillar [ 'package_build_dir' ] = options . package_build_dir if options . package_artifact_dir : pillar [ 'package_artifact_dir' ] = options . package_artifact_dir if options . pillar : pillar . update ( dict ( options . pillar ) ) return yaml . dump ( pillar , default_flow_style = True , indent = 0 , width = sys . maxint ) . rstrip ( )
build a yaml formatted string to properly pass pillar data .