Home | History | Annotate | Download | only in cli

Lines Matching refs:platform

35             cls, web_server, hosts, platform=None,
47 @param platform: A string or None.
62 obj.platform = platform
88 # Now add the platform label.
89 # If a platform was not provided and we were able to retrieve it
90 # from the host, use the retrieved platform.
91 platform = self.platform if self.platform else host_info.platform
92 if platform:
93 labels.add(platform)
105 # Check to see if the platform or any other labels can be grabbed from
134 if self.platform:
136 [self.platform],
137 platform=True)
139 # No platform was provided so check and create the platform label
143 if host_info.platform and host_info.platform not in platforms:
144 platforms.append(host_info.platform)
148 platform=True)
156 platform=False)
170 def __init__(self, hostname, platform, labels):
172 self.platform = platform