'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))
    LOG.debug('Updating    progress    to    %d', progress, instance=instance)
    instance.progress = progress
    instance.save()
