'Should this lineage now automatically deploy a newer version?
This is a policy question and does not only depend on whether
there is a newer version of the cert. (This considers whether
autodeployment is enabled, whether a relevant newer version
exists, and whether the time interval for autodeployment has
been reached.)
:param bool interactive: set to True to examine the question
regardless of whether the renewal configuration allows
automated deployment (for interactive use). Default False.
:returns: whether the lineage now ought to autodeploy an
existing newer cert version
:rtype: bool'

def should_autodeploy(self, interactive=False):

    if (interactive or self.autodeployment_is_enabled()):
        if self.has_pending_deployment():
            interval = self.configuration.get('deploy_before_expiry', '5    days')
            now = pytz.UTC.fromutc(datetime.datetime.utcnow())
            if (self.target_expiry < add_time_interval(now, interval)):
                return True
    return False
