#47548 register-ds-admin does not register into remote config ds
Closed: wontfix None Opened 7 years ago by rmeggins.

Instead register-ds-admin will create a local config DS. You can't make it just register the existing DS instance on the local machine with a config DS on another machine. It wants to make the local DS into a config DS.


Plus silent mode '-s -f <file>' needs to be supported.

Thanks Noriko!

git merge ticket47548
Updating cab7571..d675f81
Fast-forward
admserv/newinst/src/register-ds-admin.pl.in | 704 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------
admserv/newinst/src/register-ds-admin.res.in | 34 ++++-
man/man8/register-ds-admin.pl.8 | 139 ++++++++++++++++--
3 files changed, 713 insertions(+), 164 deletions(-)

git push origin master
To ssh://git.fedorahosted.org/git/389/admin.git
cab7571..d675f81 master -> master

commit d675f8137534ee7f0aba2a0897e5bf0034d993e1
Author: Mark Reynolds mreynolds@redhat.com
Date: Wed Sep 10 09:36:50 2014 -0400

66fe23d..c3e77fb master -> master
commit c3e77fb4d6d6f4db8e577c96214bd39179c5c9e0
Author: Mark Reynolds mreynolds@redhat.com
Date: Fri May 22 16:43:08 2015 -0400

To ssh://git.fedorahosted.org/git/389/admin.git
220b91d..42d6560 master -> master
[
commit 42d65608dc312e0fa753841764ca8208a047e01a
Author: Mark Reynolds mreynolds@redhat.com
Date: Fri Jun 5 14:28:53 2015 -040

I thought that in perl the evaluation of @variable in a scalar context (i.e. an if statement) was supposed to return the number of elements. When the if test returned true, what was the value?

Note that we use this idiom {{{ if (@somearray) { }}} in a lot of places in our code . . .

Replying to [comment:17 rmeggins]:

I thought that in perl the evaluation of @variable in a scalar context (i.e. an if statement) was supposed to return the number of elements. When the if test returned true, what was the value?

Note that we use this idiom {{{ if (@somearray) { }}} in a lot of places in our code . . .

{{{
@silent_instances = $setup->{inf}->{register}->{instance};
}}}

So in my case "if (@silent_instances)" returned true, but $#silent_instances was 0

Replying to [comment:18 mreynolds]:

Replying to [comment:17 rmeggins]:

I thought that in perl the evaluation of @variable in a scalar context (i.e. an if statement) was supposed to return the number of elements. When the if test returned true, what was the value?

Note that we use this idiom {{{ if (@somearray) { }}} in a lot of places in our code . . .

{{{
@silent_instances = $setup->{inf}->{register}->{instance};
}}}

So in my case "if (@silent_instances)" returned true, but $#silent_instances was 0

What was/is $setup->{inf}->{register}->{instance} in this case? It must not have been an array/list. Was it an array reference?

Metadata Update from @mreynolds:
- Issue assigned to mreynolds
- Issue set to the milestone: 389-admin,console 1.1.36

3 years ago

389-ds-base is moving from Pagure to Github. This means that new issues and pull requests
will be accepted only in 389-ds-base's github repository.

This issue has been cloned to Github and is available here:
- https://github.com/389ds/389-ds-base/issues/885

If you want to receive further updates on the issue, please navigate to the github issue
and click on subscribe button.

Thank you for understanding. We apologize for all inconvenience.

Metadata Update from @spichugi:
- Issue close_status updated to: wontfix (was: Fixed)

2 months ago

Login to comment on this ticket.

Metadata