Skip to content
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

fix(agw): Fix wildcard expansion error in magma aliases #13929

Merged
merged 1 commit into from
Sep 15, 2022

Conversation

LKreutzer
Copy link
Contributor

Signed-off-by: Lars Kreutzer lars.kreutzer@tngtech.com
Co-authored-by: Jan Heidbrink jan.heidbrink@tngtech.com
Co-authored-by: Nils Semmelrock nils.semmelrock@tngtech.com
Co-authored-by: Lars Kreutzer lars.kreutzer@tngtech.com

Summary

  • If bash cannot expand a wildcard it hands the expression literally to the command if it can expand it it hands over the expanded expression
    • This results in an error for the case of magma* e.g. in the home directory where the magma folder exists as service is handed the expanded expression instead of the service.
    • In other directories it is handed magma* which service then expands to the services.
    • This can be fixed by adding quotation marks

Test Plan

  • vagrant up magma
  • vagrant ssh magma
  • cd ~ && magma-start && magma-status

Additional Information

  • This change is backwards-breaking

@LKreutzer LKreutzer requested a review from a team as a code owner September 14, 2022 15:29
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines. label Sep 14, 2022
@LKreutzer LKreutzer requested review from ajahl and removed request for koolzz September 14, 2022 15:30
@github-actions
Copy link
Contributor

Thanks for opening a PR! 💯

A couple initial guidelines

Howto

  • Reviews. The "Reviewers" listed for this PR are the Magma maintainers who will shepherd it.
  • Checks. All required CI checks must pass before merge.
  • Merge. Once approved and passing CI checks, use the ready2merge label to indicate the maintainers can merge your PR.

More info

Please take a moment to read through the Magma project's

If this is your first Magma PR, also consider reading

@github-actions github-actions bot added the component: agw Access gateway-related issue label Sep 14, 2022
@LKreutzer LKreutzer changed the title fix(ci): Fix wildcard expansion error in magma aliases fix: Fix wildcard expansion error in magma aliases Sep 14, 2022
Signed-off-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
Co-authored-by: Jan Heidbrink <jan.heidbrink@tngtech.com>
Co-authored-by: Nils Semmelrock <nils.semmelrock@tngtech.com>
Co-authored-by: Lars Kreutzer <lars.kreutzer@tngtech.com>
@LKreutzer LKreutzer changed the title fix: Fix wildcard expansion error in magma aliases fix(agw): Fix wildcard expansion error in magma aliases Sep 14, 2022
@github-actions
Copy link
Contributor

feg-workflow

    2 files  203 suites   40s ⏱️
374 tests 374 ✔️ 0 💤 0
388 runs  388 ✔️ 0 💤 0

Results for commit 29736b3.

@github-actions
Copy link
Contributor

dp-workflow

14 tests   14 ✔️  2m 18s ⏱️
  1 suites    0 💤
  1 files      0

Results for commit 29736b3.

@github-actions
Copy link
Contributor

agw-workflow

615 tests   611 ✔️  3m 46s ⏱️
    2 suites      4 💤
    2 files        0

Results for commit 29736b3.

@LKreutzer LKreutzer merged commit 5287b74 into magma:master Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: agw Access gateway-related issue size/XS Denotes a PR that changes 0-9 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants