From bcee6534ba50284b0f9cd282f369deba83df8b8e Mon Sep 17 00:00:00 2001 From: tonytan4ever Date: Sun, 25 Oct 2015 20:06:20 -0400 Subject: [PATCH] Add spsId when upserting SAN info Change-Id: Ia67d7c0219a8cd2bb5e84053bf787eb888a29abd --- .../san_cert_info/cassandra/upsert_san_cert_info.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/providers/akamai/san_cert_info/cassandra/upsert_san_cert_info.py b/scripts/providers/akamai/san_cert_info/cassandra/upsert_san_cert_info.py index 3e14008b..7e53be4c 100644 --- a/scripts/providers/akamai/san_cert_info/cassandra/upsert_san_cert_info.py +++ b/scripts/providers/akamai/san_cert_info/cassandra/upsert_san_cert_info.py @@ -33,6 +33,7 @@ def main(): 'issuer': 'symantec', 'ipVersion': 'ipv4', 'slot_deployment_klass': 'esslType', + 'spsId': None, 'jobId': None} san_info_dict = { @@ -48,10 +49,15 @@ def main(): 'default value: %s' ' (if default is None, ' 'that means a real value has to' - ' be input): ' % + ' be input, except spsId): ' % (attr, san_cert_name, san_attribute_default_list[attr])) + # We allow not inputing spsId, however if it is in + # transitioning from the old manual SAN process we NEED + # to put in spsId + if user_input in ["", None] and attr == "spsId": + break if san_attribute_default_list[attr] is None: continue else: