def update_instance(instance):
 if ((not instance.config_drive) and required_by(instance)):
  instance.config_drive = True

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 the image or configuration file settings may override the default instance setting .