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

Remove the separator parameter #20643

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

RoyCai7
Copy link
Contributor

@RoyCai7 RoyCai7 commented Nov 14, 2024

Issue Description:
When attempting to install a guest, the LTSS (Long Term Service Support) registration code cannot be get. Instead, it displays an incorrect or empty string '-E "|||||||||||||"'.

@RoyCai7 RoyCai7 marked this pull request as ready for review November 14, 2024 23:05
@RoyCai7 RoyCai7 changed the title Removing the separator parameter Remove the separator parameter Nov 15, 2024
@Julie-CAO
Copy link
Contributor

thanks for the fix. Previously I used "|" in ltss tests to pass multiple scc_codes to multiple guests but failed, all guests got the last scc_dode. I assume your fix will fix this?

@waynechen55
Copy link
Contributor

waynechen55 commented Nov 15, 2024

@RoyCai7 Would you help also have a second look at your previous pull request #20501 ?

I think we'd better have a second thought, decide the potential root cause and fix there. I think if regcode_ltss is retrieved the same way as regcode in get_guest_regcode function, it should return the correct result with separator |.

And I do not think you need get_ltss_regcode function ??? Better remove it ???

Let's clean all these things up here. What I am trying to convey is we'd better do not do fix on fix . Hope you can understand.

By the way, I think the potential root cause lies here in guest_guest_regcode:

my @guest_parts = split($args{separator}, $guest);

should be

my @guest_parts= $args{separator} eq '|' ? split("\\$args{separator}", $guest) : split("$args{separator}", $guest);

You may forgot using escape character I think.

So I think, maybe:

  • Make above suggested change ???
  • Remove ``get_ltss_regcode``` ???

are the changes need to be made in this pull request instead of current change.

@RoyCai7
Copy link
Contributor Author

RoyCai7 commented Nov 16, 2024

thanks for the fix. Previously I used "|" in ltss tests to pass multiple scc_codes to multiple guests but failed, all guests got the last scc_dode. I assume your fix will fix this?
Will make change to be suitable for you job.

@RoyCai7
Copy link
Contributor Author

RoyCai7 commented Nov 16, 2024

@RoyCai7 Would you help also have a second look at your previous pull request #20501 ?

I think we'd better have a second thought, decide the potential root cause and fix there. I think if regcode_ltss is retrieved the same way as regcode in get_guest_regcode function, it should return the correct result with separator |.

And I do not think you need get_ltss_regcode function ??? Better remove it ???

Let's clean all these things up here. What I am trying to convey is we'd better do not do fix on fix . Hope you can understand.

By the way, I think the potential root cause lies here in guest_guest_regcode:

my @guest_parts = split($args{separator}, $guest);

should be

my @guest_parts= $args{separator} eq '|' ? split("\\$args{separator}", $guest) : split("$args{separator}", $guest);

You may forgot using escape character I think.

So I think, maybe:

  • Make above suggested change ???
  • Remove ``get_ltss_regcode``` ???

are the changes need to be made in this pull request instead of current change.

Good solution, Will make improvement.

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.

3 participants