@utils.arg('-s', '--script-id',
           help='Script uuid',
           required=True)
@utils.arg('-f', '--file',
           help='Script file',
           required=True)
def do_pyscripts_script_update(cc, args={}):
    excluded_fields = [
        'checksum',
    ]
    with open(args.file) as fp:
        content = fp.read()
    try:
        script = cc.pyscripts.scripts.get(script_id=args.script_id)
    except exc.HTTPNotFound:
        raise exc.CommandError('Script not found: %s' % args.script_id)
    script_dict = script.to_dict()
    for field in excluded_fields:
        del script_dict[field]
    script_dict['data'] = content
    cc.pyscripts.scripts.update(**script_dict)
Prompt the user asking if they would like to save the settings,
dataset/ETHPy150Open openstack/python-cloudkittyclient/cloudkittyclient/v1/rating/pyscripts/shell.py/do_pyscripts_script_update--crossover with--dataset/ETHPy150Open ibm-security-intelligence/api-samples/modules/config.py/Config.write_config_file