satops 1.5.7 → 5.7.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/satops/operator.rb +3 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 17285bbc5eeaf0f510667b9e7b00861b1fe1f4e7
4
- data.tar.gz: 6092b9ed2a44eda88bb6636df7cc77a2b45db577
3
+ metadata.gz: 8a3b1579cfd011e7597973f5e7c3df90772eaa01
4
+ data.tar.gz: 564c971ef5d8224b315e7e612e64aa51cdc75da5
5
5
  SHA512:
6
- metadata.gz: a9b7d58b643029dea9bb8a5c446d1a72c882397995f68335c9ed7202dc35b3d89ebe58961fdd64790e05b49611e5d477eebfde3cf62f798eb05b60a453dac632
7
- data.tar.gz: 06634295fef298b2385031c89328ed45cc8ff5bfdcd813771684574f11a780ad346fdabb298a4a451590ee2eb6bdf3aa9a90e9370911cecd7d15c25495531783
6
+ metadata.gz: ccb656c4fbb2b1e5a0bb6af24d1e6c31259bc1ead2ec0add88b0e9376b775c3e12dcdebb729ece5aaf09a617cc4c3c7f3bc9e8b657a517b8b0667d5a4ae88fc4
7
+ data.tar.gz: 1147710af56ee44a3a21c953f7d142227b84aca6fdef309396a2e049f62c4e64898efae7d67058afa4ae277d8cd35e838274d73695474b791f5bc6bef00a4100
@@ -1196,16 +1196,14 @@ end
1196
1196
  class UsersSet < OperationSet
1197
1197
  def delete(list)
1198
1198
  list.each do |user|
1199
- case user.class
1200
- when Hash
1201
- @sat.user.delete(user['login']) unless Users.exclude.include?(user['login'])
1202
- when User
1199
+ if user.class == String
1200
+ @sat.user.delete(user) unless Users.exclude.include?(user)
1201
+ else
1203
1202
  @sat.user.delete(user.login) unless Users.exclude.include?(user.login)
1204
1203
  end
1205
1204
  end
1206
1205
  end
1207
1206
 
1208
-
1209
1207
  def delete_all
1210
1208
  delete(Helpers.filter(@sat.user.listUsers, 'login'))
1211
1209
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: satops
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.7
4
+ version: 5.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gilles Dubreuil