This has worked fine for the older models (7000 series and 5000 series) as they would only respond to the command should the device be a chassis. For example, if a 5000 series had dual fans and power supply, the device would respond with an "invalid syntax" when you run the query.
looking at you!
Some background: We intro'd the tag "chassis" for licensing purposes only. Because we tend to check for extra cool stuff specific to a chassis, we need to make sure we take that into account when we quote pricing and issue licenses. Chassis are considered, "special licenses".
As Charles mentions, the way we currently do it, does not scale. and other Palo Alto Experts out there, interesting ideas are welcomed!