Skip to content

(MODULES-5031) Modify facts for SQL Server 2016 #212

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 8, 2017
Merged

(MODULES-5031) Modify facts for SQL Server 2016 #212

merged 1 commit into from
Jun 8, 2017

Conversation

glennsarti
Copy link
Contributor

Previously the custom facts for the module only supported SQL Server 2012 and
2014. This commit updates the facts to support usage on SQL Server 2016, and
adds additional feature detection for features that have been added in Server
2016, or missed out on Server 2014.

@glennsarti glennsarti changed the title (MODULES-5031) Modify facts for SQL Server 2016 {WIP}(MODULES-5031) Modify facts for SQL Server 2016 Jun 2, 2017
@glennsarti glennsarti changed the title {WIP}(MODULES-5031) Modify facts for SQL Server 2016 (MODULES-5031) Modify facts for SQL Server 2016 Jun 2, 2017
# also WMI: SqlService WHERE SQLServiceType = 4 # MsDtsServer
'SQL_DTS_Full' => 'IS', # Integration Services
'SQL_DTS_Full' => 'IS', # Integration Services
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tab?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure on the question. I was just aligning hashrockets

@@ -225,7 +246,7 @@ def self.get_features
# "RS"
# ]
# }
def self.get_instance_info(version = SQL_2014, instance_name)
def self.get_instance_info(version = SQL_2016, instance_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why leave this as a default if it will have to be changed each time we increment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just checked the call sites. There's no need for a default. Perhaps just return nil if version is nil

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the code to have no default and just return nil if the version is nil.

Previously the custom facts for the module only supported SQL Server 2012 and
2014.  This commit updates the facts to support usage on SQL Server 2016, and
adds additional feature detection for features that have been added in Server
2016, or missed out on Server 2014.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants