@@ -56,7 +56,7 @@ class PodmanPlatform(LocalFixableRequirement):
5656
5757 @property
5858 def fix_cmd (self ):
59- host_os = self .host .os_type ()
59+ host_os = self .host .os_type
6060 if host_os == "darwin" :
6161 return ["brew" , "install" , "podman" ]
6262 return ["sudo" , host .package_manager (), "install" , "-y" , "podman" ]
@@ -164,7 +164,7 @@ async def check(self):
164164class PodmanRuntime (Requirement ):
165165 @property
166166 def fix_cmd (self ):
167- if self .host .os_type () != "darwin" :
167+ if self .host .os_type != "darwin" :
168168 return ["sudo" , self .host .package_manager (), "install" , "-y" , "crun" ]
169169 return []
170170
@@ -214,7 +214,7 @@ class PodmanDNSPlugin(FixableRequirement):
214214
215215 @property
216216 def dns_plugin_path (self ):
217- os_type = self .host .os_type ()
217+ os_type = self .host .os_type
218218 if os_type in ["ubuntu" , "debian" ]:
219219 return "/usr/lib/cni/dnsname"
220220 return "/usr/libexec/cni/dnsname"
@@ -225,7 +225,7 @@ def check_cmd(self):
225225
226226 @property
227227 def fix_cmd (self ):
228- os_type = self .host .os_type ()
228+ os_type = self .host .os_type
229229 if os_type == "centos" :
230230 return ["sudo" , "dnf" , "install" , "-y" , self .dns_plugin_path ]
231231 elif os_type in ["ubuntu" , "debian" ]:
@@ -261,7 +261,7 @@ class AppArmorProfile(FixableRequirement):
261261async def check_requirements ():
262262 if not await PodmanPlatform ().evaluate ():
263263 return False
264- if local_host .os_type () == "darwin" :
264+ if local_host .os_type == "darwin" :
265265 if not await PodmanMachinePresent ().evaluate ():
266266 return False
267267 if not await PodmanMachineRunning ().evaluate ():
0 commit comments