diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/oe-setup-layers | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/oe-setup-layers b/scripts/oe-setup-layers index 6c02262663..c8012fa670 100755 --- a/scripts/oe-setup-layers +++ b/scripts/oe-setup-layers | |||
@@ -112,10 +112,10 @@ parser.add_argument('--jsondata', default=__file__+".json", help='File containin | |||
112 | args = parser.parse_args() | 112 | args = parser.parse_args() |
113 | 113 | ||
114 | with open(args.jsondata) as f: | 114 | with open(args.jsondata) as f: |
115 | json = json.load(f) | 115 | json_f = json.load(f) |
116 | 116 | ||
117 | supported_versions = ["1.0"] | 117 | supported_versions = ["1.0"] |
118 | if json["version"] not in supported_versions: | 118 | if json_f["version"] not in supported_versions: |
119 | raise Exception("File {} has version {}, which is not in supported versions: {}".format(args.jsondata, json["version"], supported_versions)) | 119 | raise Exception("File {} has version {}, which is not in supported versions: {}".format(args.jsondata, json_f["version"], supported_versions)) |
120 | 120 | ||
121 | _do_checkout(vars(args), json) | 121 | _do_checkout(vars(args), json_f) |