def update_instance(instance):
    if not instance.config_drive and required_by(instance):
        instance.config_drive = True
Update the instance config_drive setting if necessary
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/configdrive.py/update_instance