Make this script work with keystone v2 and v3

Change-Id: Ic3871eeadd77945ff70f925892e25d36435075fd
1 file changed