def get_hotfix_version(version):
    """Given a version it will return the next hotfix version"""
    parts = version.split('.')
    major = int(parts[0])
    minor = int(parts[1])
    hotfix = int(parts[2]) if len(parts) > 2 else 0

    return "%d.%d.%d" % (major, minor, hotfix+1)