Skip to content

(FACT-546) Enclose interface name in single quotes#832

Merged
whopper merged 1 commit intopuppetlabs:masterfrom
vinzent:FACT-546
Jan 8, 2015
Merged

(FACT-546) Enclose interface name in single quotes#832
whopper merged 1 commit intopuppetlabs:masterfrom
vinzent:FACT-546

Conversation

@vinzent
Copy link

@vinzent vinzent commented Dec 29, 2014

oVirt/RHEV creates a ";vdsmdummy;" network interface.

facter outputs many messages:
sh: vdsmdummy: command not found

ifconfig and ip command lines are called like "/sbin/ifconfig ;vdsmdummy;" which is interpreted as "ifconfig" and "vdsmdummy" (same for the ip command).

The interface names should be enclosed by single quotes.

@puppetcla
Copy link

CLA signed by all contributors.

@whopper
Copy link

whopper commented Jan 5, 2015

@vinzent thanks for the contribution!

We'll be having our weekly pull request triage this Wednesday, so we'll discuss getting this merged in then. Using single quotes with ifconfig and ip worked on every platform that I tested, so 👍 from me.

@kylog
Copy link

kylog commented Jan 5, 2015

@whopper do you know if cfacter has any prob with interface names with semi-colons?

@whopper
Copy link

whopper commented Jan 5, 2015

@kylog I'm not sure - I'll go poke around and see if I can replicate this.

@whopper
Copy link

whopper commented Jan 5, 2015

@kylog it looks like cfacter is unaffected since it uses the getifaddrs() function to grab interface info directly rather than having to shell out to ifconfig or ip. So, I believe we should be good on that front!

whopper added a commit that referenced this pull request Jan 8, 2015
(FACT-546) Enclose interface name in single quotes
@whopper whopper merged commit a5484fc into puppetlabs:master Jan 8, 2015
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