diff options
author | 2020-03-05 10:28:03 +0100 | |
---|---|---|
committer | 2020-03-05 15:26:40 +0000 | |
commit | 3d3d3c28d88d1f7bad2b9a274fe9ad4cfaf01554 (patch) | |
tree | 2f33b3f16289d8555173f011737d611515e7541b /test/hpa_automation/heat | |
parent | 5d8a1df2dbfd99fa87e792c584ac220187c9928e (diff) |
Fix indentation and whitespace issues in Python scripts
Reported by pylint.
Change-Id: I9d5ee152f3587bb2d7e8abee919e4ffe47d8ae85
Issue-ID: INT-1427
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'test/hpa_automation/heat')
-rw-r--r-- | test/hpa_automation/heat/insert_policy_models_heat.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/hpa_automation/heat/insert_policy_models_heat.py b/test/hpa_automation/heat/insert_policy_models_heat.py index 68a1d23bf..549763897 100644 --- a/test/hpa_automation/heat/insert_policy_models_heat.py +++ b/test/hpa_automation/heat/insert_policy_models_heat.py @@ -1,13 +1,13 @@ import mysql.connector import sys - + mydb = mysql.connector.connect( host= sys.argv[1], user= sys.argv[2], passwd= sys.argv[3], database="onap_sdk", ) - + mycursor = mydb.cursor() sql = "INSERT INTO microservicemodels (modelname, description, dependency, imported_by, attributes, ref_attributes, sub_attributes, version, annotation, enumValues, dataOrderInfo) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)" @@ -22,9 +22,9 @@ val = [ ('pciPolicy', 'Pci policy model', '[]', 'demo', 'identity=string:defaultValue-null:required-true:MANY-false:description-null', 'policyScope=MANY-true,policyType=POLICYTYPE:MANY-false,resources=MANY-true,pciProperties=pciProperties_properties:MANY-true:description-null', '{"pciProperties_properties":{"pciOptimizationTimeConstraint":"string:defaultValue-null:required-false:MANY-false:description-null","pciOptimizationNwConstraint":"string:defaultValue-null:required-false:MANY-false:description-null","algoCategory":"string:defaultValue-null:required-false:MANY-false:description-null","pciOptmizationAlgoName":"string:defaultValue-null:required-false:MANY-false:description-null","pciOptimizationPriority":"string:defaultValue-null:required-false:MANY-false:description-null"}}', 'test1', 'olicyScope=matching-true, policyType=matching-true ', ' POLICYTYPE=[pciPolicy,]', '""'), ('subscriberPolicy', 'Subscriber Policy Model', '[]', 'demo', 'identity=string:defaultValue-null:required-true:MANY-false:description-null', 'policyScope=MANY-true,policyType=POLICYTYPE:MANY-false,properties=properties_properties:MANY-false:description-type of a policy', '{"properties_properties":{"provStatus":"PROVSTATUS:defaultValue-null:required-true:MANY-false:description-null","subscriberName":"SUBSCRIBERNAME:defaultValue-null:required-true:MANY-false:description-null","subscriberRole":"SUBSCRIBERROLE:defaultValue-null:required-true:MANY-false:description-null"}}', 'test1', 'policyScope=matching-true, policyType=matching-true, properties=matching-true ', ' SUBSCRIBERNAME=[], SUBSCRIBERROLE=[], POLICYTYPE=[subscriberPolicy,], PROVSTATUS=[]', '""') ] - + mycursor.executemany(sql, val) - + mydb.commit() - + print(mycursor.rowcount, "was inserted.") |