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

*** NameError: name 'ds_is_older' is not defined #3504

Closed
389-ds-bot opened this issue Sep 13, 2020 · 7 comments
Closed

*** NameError: name 'ds_is_older' is not defined #3504

389-ds-bot opened this issue Sep 13, 2020 · 7 comments
Labels
closed: fixed Migration flag - Issue

Comments

@389-ds-bot
Copy link

Cloned from Pagure issue: https://pagure.io/389-ds-base/issue/50446

  • Created at 2019-06-13 18:48:30 by aborah (@aborah-sudo)
  • Closed at 2019-06-17 21:12:36 as Fixed
  • Assigned to nobody

Issue Description:

from lib389.utils import (ds_is_older) is missing in

https://pagure.io/389-ds-base/blob/master/f/src/lib389/lib389/idm/account.py

users = UserAccounts(standalone, DEFAULT_SUFFIX)
for i in users.list(): i.dn
'uid=testuser,ou=People,dc=example,dc=com'
'uid=test_user_1000,ou=People,dc=example,dc=com'
'uid=test_user1,ou=People,dc=example,dc=com'

UserAccount(standalone,'uid=test_user1,ou=People,dc=example,dc=com').enroll_certificate('/etc/dirsrv/slapd-standalone1/user-test_user1.der')
*** NameError: name 'ds_is_older' is not defined

@389-ds-bot 389-ds-bot added the closed: fixed Migration flag - Issue label Sep 13, 2020
@389-ds-bot
Copy link
Author

Comment from firstyear (@Firstyear) at 2019-06-14 09:32:00

Check this file; src/lib389/lib389/utils.py:1074:def ds_is_older(*ver):

@389-ds-bot
Copy link
Author

Comment from firstyear (@Firstyear) at 2019-06-14 09:32:00

Metadata Update from @Firstyear:

  • Custom field origin adjusted to None
  • Custom field reviewstatus adjusted to None
  • Issue close_status updated to: invalid
  • Issue status updated to: Closed (was: Open)

@389-ds-bot
Copy link
Author

Comment from firstyear (@Firstyear) at 2019-06-14 09:32:18

In the future, please simply use 'grep' to search the ccode base for functions ....

@389-ds-bot
Copy link
Author

Comment from mhonek (@kenoh) at 2019-06-14 09:40:04

@Firstyear I find this issue to be valid. Would you elaborate on why it should be not so?

@389-ds-bot
Copy link
Author

Comment from firstyear (@Firstyear) at 2019-06-14 09:44:48

@kenoh Apparently I can read english at this time of day, and I thought the issue was he was saying the function didn't exist. My mistake :( :( :(

@389-ds-bot
Copy link
Author

Comment from mhonek (@kenoh) at 2019-06-14 09:49:10

Metadata Update from @kenoh:

  • Issue status updated to: Open (was: Closed)

@389-ds-bot
Copy link
Author

Comment from spichugi (@droideck) at 2019-06-17 21:12:36

Commit 89081d1f fixes this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed: fixed Migration flag - Issue
Projects
None yet
Development

No branches or pull requests

1 participant