Revision 35007011 lib/cmdlib.py

b/lib/cmdlib.py
2193 2193
      _ErrorIf(len(os_data) > 1, self.ENODEOS, node,
2194 2194
               "OS '%s' has multiple entries (first one shadows the rest): %s",
2195 2195
               os_name, utils.CommaJoin([v[0] for v in os_data]))
2196
      # this will catched in backend too
2197
      _ErrorIf(compat.any(v >= constants.OS_API_V15 for v in f_api)
2198
               and not f_var, self.ENODEOS, node,
2199
               "OS %s with API at least %d does not declare any variant",
2200
               os_name, constants.OS_API_V15)
2201 2196
      # comparisons with the 'base' image
2202 2197
      test = os_name not in base.oslist
2203 2198
      _ErrorIf(test, self.ENODEOS, node,

Also available in: Unified diff