Correctly print message if arping isn't installed
Change-Id: Ia8e6a305bebb51556974b72c83d86b472b6918e5
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -559,8 +559,8 @@ class ONOSCLI( OldCLI ): | ... | @@ -559,8 +559,8 @@ class ONOSCLI( OldCLI ): |
559 | except: | 559 | except: |
560 | count = 1 | 560 | count = 1 |
561 | # Technically this check should be on the host | 561 | # Technically this check should be on the host |
562 | - if '-U' not in quietRun( 'arping -h' ): | 562 | + if '-U' not in quietRun( 'arping -h', shell=True ): |
563 | - warn( 'Please install iputils-arping' ) | 563 | + warn( 'Please install iputils-arping.\n' ) |
564 | return | 564 | return |
565 | # This is much faster if we do it in parallel | 565 | # This is much faster if we do it in parallel |
566 | for host in self.mn.net.hosts: | 566 | for host in self.mn.net.hosts: | ... | ... |
-
Please register or login to post a comment