Skip to content

Add check to ensure file exists#3737

Merged
yuumasato merged 2 commits intoComplianceAsCode:masterfrom
lkinser:patch-1
Feb 7, 2019
Merged

Add check to ensure file exists#3737
yuumasato merged 2 commits intoComplianceAsCode:masterfrom
lkinser:patch-1

Conversation

@lkinser
Copy link
Copy Markdown
Contributor

@lkinser lkinser commented Feb 5, 2019

File module will error if the specified file does not exist. Added a check with stat module to look for the file prior to attempting to make the change.

Description:

  • Description here. Replace this text. Don't use the italics format!

Rationale:

  • Rationale here. Replace this text. Don't use the italics format!

  • Fixes # Issue number here (e.g. Updating sysctl XCCDF naming #26) or remove this line if no issue exists.

File module will error if the specified file does not exist. Added a check with stat module to look for the file prior to attempting to make the change.
@openscap-ci
Copy link
Copy Markdown
Collaborator

Can one of the admins verify this patch?

@shawndwells shawndwells self-assigned this Feb 5, 2019
@shawndwells
Copy link
Copy Markdown
Member

@openscap-ci add to whitelist

@shawndwells
Copy link
Copy Markdown
Member

@openscap-ci ok to test

@scrutinizer-notifier
Copy link
Copy Markdown

The inspection completed: 1 new issues

@shawndwells
Copy link
Copy Markdown
Member

shawndwells commented Feb 5, 2019

Should be ready to review/test. Since I pushed to this PR, would be best if someone else were to review.

@shawndwells shawndwells removed their assignment Feb 5, 2019
@yuumasato yuumasato self-assigned this Feb 7, 2019
@yuumasato yuumasato added this to the 0.1.43 milestone Feb 7, 2019
@yuumasato
Copy link
Copy Markdown
Member

Looks good, thank you!

@yuumasato yuumasato merged commit 1419dea into ComplianceAsCode:master Feb 7, 2019
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.

5 participants