Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
5875d19f
Commit
5875d19f
authored
Mar 10, 2014
by
Matthew Riedel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Returning 'NA' when no virtualization found
parent
53fd5295
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
library/system/setup
+7
-0
No files found.
library/system/setup
View file @
5875d19f
...
@@ -2185,6 +2185,13 @@ class LinuxVirtual(Virtual):
...
@@ -2185,6 +2185,13 @@ class LinuxVirtual(Virtual):
self
.
facts
[
'virtualization_role'
]
=
'host'
self
.
facts
[
'virtualization_role'
]
=
'host'
return
return
# If none of the above matches, return 'NA' for virtualization_type
# and virtualization_role. This allows for proper grouping.
self
.
facts
[
'virtualization_type'
]
=
'NA'
self
.
facts
[
'virtualization_role'
]
=
'NA'
return
class
HPUXVirtual
(
Virtual
):
class
HPUXVirtual
(
Virtual
):
"""
"""
This is a HP-UX specific subclass of Virtual. It defines
This is a HP-UX specific subclass of Virtual. It defines
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment