'Update instance progress percent to reflect current step number'

def _update_instance_progress(self, context, instance, step, total_steps):

    progress = round(((float(step) / total_steps) * 100))
    instance_uuid = instance.uuid
    LOG.debug("Updating    instance    '%(instance_uuid)s'    progress    to    %(progress)d", {'instance_uuid': instance_uuid, 'progress': progress}, instance=instance)
    instance.progress = progress
    instance.save()
