def is_nova_server(resource):
- return "type" in resource and "properties" in resource and resource.get("type") == "OS::Nova::Server"
+ return (
+ "type" in resource
+ and "properties" in resource
+ and resource.get("type") == "OS::Nova::Server"
+ )
def get_vm_type_for_nova_server(resource):