davidjumani opened a new pull request #5354:
URL: https://github.com/apache/cloudstack/pull/5354


   ### Description
   
   Fixes fetching the bridge name for c8 / suse where the result of virsh 
domlist contains leading spaces
   Used only in component tests, so not a functionality break
   
   ### Types of changes
   
   - [ ] Breaking change (fix or feature that would cause existing 
functionality to change)
   - [ ] New feature (non-breaking change which adds functionality)
   - [x] Bug fix (non-breaking change which fixes an issue)
   - [ ] Enhancement (improves an existing feature and functionality)
   - [ ] Cleanup (Code refactoring and cleanup, that may add test cases)
   
   #### Bug Severity
   
   - [ ] BLOCKER
   - [ ] Critical
   - [ ] Major
   - [x] Minor
   - [ ] Trivial
   
   
   ### How Has This Been Tested?
   
   #### Before :
   
   ```
   # virsh domiflist i-2-3-VM |grep -w '02:00:12:b0:00:01'
    vnet6       bridge   cloudbr1   virtio   02:00:12:b0:00:01    <- notice the 
leading space
   # virsh domiflist i-2-3-VM |grep -w '02:00:12:b0:00:01' |tr -s ' '|cut -d ' 
' -f3
   bridge   <- Displays the second field
   ```
   
   #### After :
   
   ```
   # virsh domiflist i-2-3-VM |grep -w '02:00:12:b0:00:01'
    vnet6       bridge   cloudbr1   virtio   02:00:12:b0:00:01    <- notice the 
leading space
   # virsh domiflist i-2-3-VM |grep -w '02:00:12:b0:00:01' | awk '{print $3}'
   cloudbr1    <- Displays the bridge name
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to