Forum Discussion
mhite_60883
Jan 23, 2012Cirrocumulus
Ah, so I suppose if I want a version independent way of doing this, I need to just pick an API endpoint that is supported in V9 and above, ie.
def f5_get_api_version(b):
version_string = str(b.System.SystemInfo.get_version())
major, minor, patch = [int(x) for x in version_string.split("_")[1][1:].split(".")]
return(major, minor, patch)
(Presuming that major, minor, and patch values are always numeric... probably a bad presumption..lol)