本文整理汇总了Python中rucio.client.Client.add_rse_attribute方法的典型用法代码示例。如果您正苦于以下问题:Python Client.add_rse_attribute方法的具体用法?Python Client.add_rse_attribute怎么用?Python Client.add_rse_attribute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rucio.client.Client
的用法示例。
在下文中一共展示了Client.add_rse_attribute方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1:
# 需要导入模块: from rucio.client import Client [as 别名]
# 或者: from rucio.client.Client import add_rse_attribute [as 别名]
elif rse['name'].startswith('INFN-T1'):
rse_name = 'INFN-T1_TAPE_STAGING'
elif rse['name'].startswith('NDGF-T1'):
rse_name = 'NDGF-T1_TAPE_STAGING'
elif rse['name'].startswith('PIC'):
rse_name = 'PIC_TAPE_STAGING'
elif rse['name'].startswith('RAL-LCG2'):
rse_name = 'RAL-LCG2_TAPE_STAGING'
elif rse['name'].startswith('RRC-KI-T1'):
rse_name = 'RRC-KI-T1_TAPE_STAGING'
elif rse['name'].startswith('SARA-MATRIX'):
rse_name = 'SARA-MATRIX_TAPE_STAGING'
elif rse['name'].startswith('TAIWAN-LCG2'):
rse_name = 'TAIWAN-LCG2_TAPE_STAGING'
elif rse['name'].startswith('TRIUMF-LCG2'):
rse_name = 'TRIUMF-LCG2_TAPE_STAGING'
elif rse['name'].startswith('PRAGUELCG2_LOCALGROUPTAPE'):
rse_name = 'PRAGUELCG2_TAPE_STAGING'
try:
print rse['name'], 'staging_area', rse_name
c.add_rse_attribute(rse['name'], 'staging_buffer', rse_name)
#c.add_rse_attribute('NDGF-T1-RUCIOTEST_DATATAPE', 'staging_area', 'NDGF-T1-RUCIOTEST_DATATAPE_STAGING')
except:
errno, errstr = sys.exc_info()[:2]
trcbck = traceback.format_exc()
print 'Interrupted processing with %s %s %s.' % (errno, errstr, trcbck)
sys.exit(OK)