Use version instead of backupVersion for grains
Change-Id: I3b16601d4c4e23c81b75128c12b8b8b460e1060c
diff --git a/_grains/jenkins_plugins.py b/_grains/jenkins_plugins.py
index e0743d1..5d16d52 100644
--- a/_grains/jenkins_plugins.py
+++ b/_grains/jenkins_plugins.py
@@ -20,5 +20,5 @@
server = jenkins.Jenkins(url, username=user, password=password)
plugins = server.get_plugins(depth=1)
for plugin_name, plugin_dict in plugins.iteritems():
- output["jenkins_plugins"][plugin_name[0]] = {"version" : (plugin_dict["backupVersion"] or 0)}
+ output["jenkins_plugins"][plugin_name[0]] = {"version" : (plugin_dict["version"] or 0)}
return output