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 -sname support #704

Closed
wants to merge 1 commit into from
Closed

Fix -sname support #704

wants to merge 1 commit into from

Conversation

nifoc
Copy link

@nifoc nifoc commented Aug 27, 2019

Summary of changes

-sname support was not working in all cases (e.g. #699).
This fixes at least the things mentioned in the above issue.

Checklist

  • New functions have typespecs, changed functions were updated
  • Same for documentation, including moduledocs
  • Tests were added or updated to cover changes
  • Commits were squashed into a single coherent commit

Licensing/Copyright

By submitting this PR, you agree to the following statement, please read before submission!

I certify that I own, and have sufficient rights to contribute, all source code and
related material intended to be compiled or integrated with the source code for Distillery
(the "Contribution"). My Contribution is licensed under the MIT License.

NOTE: If you submit a PR and remove the statement above, your PR will be rejected. For your PR to be considered, it must contain your agreement to license under the MIT license.

-sname support was not working in all cases (e.g. bitwalker#699).
This fixes at least the things mentioned in the above issue.
@albertored
Copy link
Contributor

albertored commented Oct 25, 2019

Any news on this? I have the same problem being not able to ping or remote_console to my app with sname because of the inverted if statement in this PR

HOSTNAME="$(get_hostname)"
OLD_NAME="$NAME"
NAME="$NAME@$HOSTNAME"
NAME_TYPE="-name"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need to include this if here

if [[ ! "$HOSTNAME" =~ ^[^\.]+\..*$ ]]; then
    # If the hostname is not fully qualified, change the name type
    NAME_TYPE="-sname"
fi

to make it work with not fully qualified hostnames

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@albertored can you please add it and then we can merge it in?

@nifoc nifoc closed this Feb 18, 2023
@nifoc nifoc deleted the fix/name-arg branch February 18, 2023 13:44
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.

None yet

3 participants