X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=cmdline%2Fgenicli.py;h=4101b5f061636f443ce7fecef234015bbe6fbd7f;hb=5585b61cbeae2f0356b8476bd4256da39be0cc10;hp=b54d4f7c9833211a848860609579e902d8b09f5f;hpb=65a47dc462d83e0f81549347ec058a42cebe0be7;p=sfa.git diff --git a/cmdline/genicli.py b/cmdline/genicli.py index b54d4f7c..4101b5f0 100644 --- a/cmdline/genicli.py +++ b/cmdline/genicli.py @@ -335,20 +335,21 @@ def main(): result = client.register(cred, record) elif (opname == "remove"): - record_list = client.resolve(cred, hrn) - if not record_list: - print "no records match hrn" - - matching_records = [] - for record in record_list: - if record.get_type() == type: - matching_records.append(record) - - if not matching_records: - print "records match hrn, but no records match type" - - for record in matching_records: - client.remove(cred,record) + client.remove(cred, type, hrn) +# record_list = client.resolve(cred, hrn) +# if not record_list: +# print "no records match hrn" +# +# matching_records = [] +# for record in record_list: +# if record.get_type() == type: +# matching_records.append(record) +# +# if not matching_records: +# print "records match hrn, but no records match type" +# +# for record in matching_records: +# client.remove(cred, record) elif (opname == "update"): record_list = client.resolve(cred, hrn)